about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-06-27 17:50:57 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-06-27 17:50:57 +0100
commitb7aecf6c8ee6beb028f4f3f7548c1b899fc5bfae (patch)
tree93908fd3b8a6ceea73bb22b893fa0d4f2ec81bdb
parent420bfcfc66d7419632068f1b8e3a368198ecab7f (diff)
downloadzsh-b7aecf6c8ee6beb028f4f3f7548c1b899fc5bfae.tar.gz
zsh-b7aecf6c8ee6beb028f4f3f7548c1b899fc5bfae.tar.xz
zsh-b7aecf6c8ee6beb028f4f3f7548c1b899fc5bfae.zip
Don't require MULTI_FUNCDEF in _main_complete.
Although it gets set there, _main_complete is parsed to the end first.
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Base/Core/_main_complete7
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7785619c5..0f03b1b4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-06-27  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* users/20281: Completion/Base/Core/_main_complete:
+	don't require MULTIFUNCDEF as _main_complete is parsed
+	before we can ensure it's set.
+
 	* 35623: Src/builtin.c, Src/zsh.h, Test/B02typeset.ztst: 35610
 	was incomplete: all is_array asignments should be treated as
 	having a value.
diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete
index c023268b3..9c4cfac85 100644
--- a/Completion/Base/Core/_main_complete
+++ b/Completion/Base/Core/_main_complete
@@ -141,11 +141,16 @@ _completer_num=1
 
 # We assume localtraps to be in effect here ...
 integer SECONDS=0
-TRAPINT TRAPQUIT() {
+TRAPINT() {
   zle -M "Killed by signal in ${funcstack[2]} after ${SECONDS}s";
   zle -R
   return 130
 }
+TRAPQUIT() {
+  zle -M "Killed by signal in ${funcstack[2]} after ${SECONDS}s";
+  zle -R
+  return 131
+}
 
 # Call the pre-functions.