about summary refs log tree commit diff
diff options
context:
space:
mode:
-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