about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-02 09:10:52 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-02 09:10:52 +0000
commit2c7f678ff0dce6c33bb3954ac3e0d025fc504a14 (patch)
treea2ec0610d81279d1443f15384694a67d7e7da258 /Completion
parentd67ca6872eecae17f2a342c28b6dcb6fe2f3d6fc (diff)
downloadzsh-2c7f678ff0dce6c33bb3954ac3e0d025fc504a14.tar.gz
zsh-2c7f678ff0dce6c33bb3954ac3e0d025fc504a14.tar.xz
zsh-2c7f678ff0dce6c33bb3954ac3e0d025fc504a14.zip
always use empty matcher-list style in _complete_help (11053)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Commands/_complete_help9
1 files changed, 8 insertions, 1 deletions
diff --git a/Completion/Commands/_complete_help b/Completion/Commands/_complete_help
index 61d095047..6733111ff 100644
--- a/Completion/Commands/_complete_help
+++ b/Completion/Commands/_complete_help
@@ -27,7 +27,14 @@ _complete_help() {
       esac
       help_styles[${2}${_f}]="${help_styles[${2}${_f}]},${_t} ${3}:${_f}"
     fi
-    builtin zstyle "$@"
+
+    # No need to call the completers more than once with different match specs.
+
+    if [[ "$3" = matcher-list ]]; then
+      eval "${4}=( '' )"
+    else
+      builtin zstyle "$@"
+    fi
   }
 
   _main_complete