about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-07-08 08:59:38 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-07-08 08:59:38 +0000
commit9ea74938897caa3aff5f22a591c5acbc4b028964 (patch)
treeff0e82042ac676dc1b479bfae0f0df015d0f63b0
parent31d6ad578b88a7bd9006fa27a3f4e8ddb68509ac (diff)
downloadzsh-9ea74938897caa3aff5f22a591c5acbc4b028964.tar.gz
zsh-9ea74938897caa3aff5f22a591c5acbc4b028964.tar.xz
zsh-9ea74938897caa3aff5f22a591c5acbc4b028964.zip
don't display _dispatch as one of the called functions (17438)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Base/Widget/_complete_help6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 33c5a01ea..4634facb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-08  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 17438: Completion/Base/Widget/_complete_help: don't display
+	_dispatch as one of the called functions
+
 2002-07-05  Peter Stephenson  <pws@csr.com>
 
 	* 17432: Test/B02typeset.ztst:  change consequent on 17334
diff --git a/Completion/Base/Widget/_complete_help b/Completion/Base/Widget/_complete_help
index 282956b07..5cf4c5f0d 100644
--- a/Completion/Base/Widget/_complete_help
+++ b/Completion/Base/Widget/_complete_help
@@ -8,9 +8,9 @@ _complete_help() {
 
   compadd() { return 1 }
   zstyle() {
-    local _f="${${(@)${(@)funcstack[2,(i)_(main_complete|complete|approximate|normal)]}:#_(wanted|requested|all_labels|next_label)}% *}"
+    local _f="${${(@)${(@)funcstack[2,(i)_(main_complete|complete|approximate|normal)]}:#_(dispatch|wanted|requested|all_labels|next_label)}% *}"
 
-    [[ -z "$_f" ]] && _f="${${(@)funcstack[2,(i)_(main_complete|complete|approximate|normal)]}:#_(wanted|requested|all_labels|next_label)}"
+    [[ -z "$_f" ]] && _f="${${(@)funcstack[2,(i)_(main_complete|complete|approximate|normal)]}:#_(dispatch|wanted|requested|all_labels|next_label)}"
 
     if [[ "$help_sfuncs[$2]" != *${_f}* ||
           "$help_styles[${2}${_f}]" != *${3}* ]]; then
@@ -73,7 +73,7 @@ _complete_help() {
 }
 
 _help_sort_tags() {
-  local f="${${(@)${(@)funcstack[3,(i)_(main_complete|complete|approximate|normal)]}:#_(wanted|requested|all_labels|next_label)}% *}"
+  local f="${${(@)${(@)funcstack[3,(i)_(main_complete|complete|approximate|normal)]}:#_(dispatch|wanted|requested|all_labels|next_label)}% *}"
 
   if [[ "$help_funcs[$curcontext]" != *${f}* ||
         "$help_tags[${curcontext}${f}]" != *(${(j:|:)~argv})* ]]; then