For help listing, capture the fallback to compctl in case there is one defined

This commit is contained in:
Barton E. Schaefer 2016-04-09 08:54:54 -07:00
parent 4df62e32fc
commit 8142fc3fdb
2 changed files with 7 additions and 1 deletions

View file

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

View file

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