summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-11-21 21:56:56 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2014-11-21 21:56:56 -0800
commit22b4ededcfc66504622fed18dae2b4615f7b2e61 (patch)
tree68e339c2fcb19d20495d03358da81a4fd171103f
parent626398f37d72e00b705054b2917c9be75bd8d77b (diff)
downloadzsh-22b4ededcfc66504622fed18dae2b4615f7b2e61.tar.gz
zsh-22b4ededcfc66504622fed18dae2b4615f7b2e61.tar.xz
zsh-22b4ededcfc66504622fed18dae2b4615f7b2e61.zip
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.
-rw-r--r--ChangeLog2
-rw-r--r--Src/text.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 044d39f66..7008c9f83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
diff --git a/Src/text.c b/Src/text.c
index f55553ed0..75f642c12 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -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("{");