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:
parent
31d6ad578b
commit
9ea7493889
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user