1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

don't display _dispatch as one of the called functions (17438)

This commit is contained in:
Sven Wischnowsky 2002-07-08 08:59:38 +00:00
parent 31d6ad578b
commit 9ea7493889
2 changed files with 8 additions and 3 deletions

@ -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

@ -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