diff options
author | Bart Schaefer <schaefer@zsh.org> | 2022-06-04 14:19:42 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2022-06-04 14:19:42 -0700 |
commit | a99f96797f5fc424554a94313dfc0d4a5b0923a1 (patch) | |
tree | 5cb7d78e59fb24c5ae8ab5f2c1579da279df73b8 /Completion/Base/Widget | |
parent | 3e3cfabcc74dc79d4d8717c4e5859d8d01be6c54 (diff) | |
download | zsh-a99f96797f5fc424554a94313dfc0d4a5b0923a1.tar.gz zsh-a99f96797f5fc424554a94313dfc0d4a5b0923a1.tar.xz zsh-a99f96797f5fc424554a94313dfc0d4a5b0923a1.zip |
50323: create helper for shadowing builtins or existing functions and use it when redefining compadd et al.
Diffstat (limited to 'Completion/Base/Widget')
-rw-r--r-- | Completion/Base/Widget/_complete_help | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Base/Widget/_complete_help b/Completion/Base/Widget/_complete_help index 69855de9d..da5947e7f 100644 --- a/Completion/Base/Widget/_complete_help +++ b/Completion/Base/Widget/_complete_help @@ -10,6 +10,7 @@ _complete_help() { local -H _help_filter_funcstack="alternative|call_function|describe|dispatch|wanted|requested|all_labels|next_label" { + _shadow compadd compcall zstyle compadd() { return 1 } compcall() { _help_sort_tags use-compctl } zstyle() { @@ -43,7 +44,7 @@ _complete_help() { ${1:-_main_complete} } always { - unfunction compadd compcall zstyle + _unshadow compadd compcall zstyle } for i in "${(@ok)help_funcs}"; do |