summary refs log tree commit diff
path: root/Completion/Base
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 /Completion/Base
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.
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Core/_main_complete7
1 files changed, 6 insertions, 1 deletions
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.