1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-04 06:14:50 +01:00

33750: handle function autoloads for DEBUG_BEFORE_CMD

gettext2() lacked a case for the WC_AUTOFN word code, tripping a dputs()
on TRAPDEBUG the first time each autoloaded function was run.
This commit is contained in:
Barton E. Schaefer 2014-11-21 21:56:56 -08:00
parent 626398f37d
commit 22b4ededcf
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2014-11-21 Barton E. Schaefer <schaefer@zsh.org>
* 33750: Src/text.c: handle function autoloads for DEBUG_BEFORE_CMD
* unposted: Doc/Zsh/zle.yo: add menu reference to Text Objects
2014-11-21 Oliver Kiddle <opk@zsh.org>

View file

@ -834,6 +834,10 @@ gettext2(Estate state)
taddstr("))");
stack = 1;
break;
case WC_AUTOFN:
taddstr("builtin autoload -X");
stack = 1;
break;
case WC_TRY:
if (!s) {
taddstr("{");