about summary refs log tree commit diff
path: root/Completion/Base/Widget/_complete_help
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/Widget/_complete_help')
-rw-r--r--Completion/Base/Widget/_complete_help2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Base/Widget/_complete_help b/Completion/Base/Widget/_complete_help
index ffbcf0caa..69930e105 100644
--- a/Completion/Base/Widget/_complete_help
+++ b/Completion/Base/Widget/_complete_help
@@ -35,10 +35,12 @@ _complete_help() {
       builtin zstyle "$@"
     fi
   }
+  trap 'unfunction compadd zstyle' EXIT INT
 
   _main_complete
 
   unfunction compadd zstyle
+  trap - EXIT INT
 
   for i in "${(@ok)help_funcs}"; do
     text="${text}