about summary refs log tree commit diff
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
parentd67ca6872eecae17f2a342c28b6dcb6fe2f3d6fc (diff)
downloadzsh-2c7f678ff0dce6c33bb3954ac3e0d025fc504a14.tar.gz
zsh-2c7f678ff0dce6c33bb3954ac3e0d025fc504a14.tar.xz
zsh-2c7f678ff0dce6c33bb3954ac3e0d025fc504a14.zip
always use empty matcher-list style in _complete_help (11053)
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Commands/_complete_help9
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cb104713d..2e8697c81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-05-02  Sven Wischnowsky  <wischnow@informatik.hu-berlin.de>
 
+	* 11053: Completion/Commands/_complete_help: always use empty
+ 	matcher-list style in _complete_help
+	
 	* 11052: Src/Zle/computil.c: fix for _arguments, use
  	on-line-argument-numbers only for normal arguments, not for
  	arguments of options
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