mirror of
https://github.com/zsh-users/zsh
synced 2024-10-14 11:53:24 +00:00
For help listing, capture the fallback to compctl in case there is one defined
This commit is contained in:
parent
4df62e32fc
commit
8142fc3fdb
|
@ -1,3 +1,8 @@
|
|||
2016-04-09 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Completion/Base/Widget/_complete_help: capture the
|
||||
fallback to compctl in case there is one defined
|
||||
|
||||
2016-04-09 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 38255: Completion/Unix/Command/_git: Fix argument pastedness.
|
||||
|
|
|
@ -11,6 +11,7 @@ _complete_help() {
|
|||
|
||||
{
|
||||
compadd() { return 1 }
|
||||
compcall() { _help_sort_tags use-compctl }
|
||||
zstyle() {
|
||||
local _f="${${(@)${(@)funcstack[2,(i)_($~_help_scan_funcstack)]}:#(_($~_help_filter_funcstack)|\((eval|anon)\))}% *}"
|
||||
|
||||
|
@ -42,7 +43,7 @@ _complete_help() {
|
|||
|
||||
${1:-_main_complete}
|
||||
} always {
|
||||
unfunction compadd zstyle
|
||||
unfunction compadd compcall zstyle
|
||||
}
|
||||
|
||||
for i in "${(@ok)help_funcs}"; do
|
||||
|
|
Loading…
Reference in a new issue