diff options
| author | Marlon Richert <marlon.richert@gmail.com> | 2021-09-06 12:48:53 -0700 |
|---|---|---|
| committer | Bart Schaefer <schaefer@ipost.com> | 2021-09-06 12:48:53 -0700 |
| commit | ca2e71e0eba4852bd91c620bf72b00198f309f12 (patch) | |
| tree | a6b97fa1883ce7ed90109aa67f2dcf2bdedaf2a4 /Completion/Zsh/Command | |
| parent | 48888: improve doc for $$ and $PPID, add fail test for PPID readonly-ness (diff) | |
| download | zsh-ca2e71e0eba4852bd91c620bf72b00198f309f12.tar zsh-ca2e71e0eba4852bd91c620bf72b00198f309f12.tar.gz zsh-ca2e71e0eba4852bd91c620bf72b00198f309f12.tar.bz2 zsh-ca2e71e0eba4852bd91c620bf72b00198f309f12.tar.lz zsh-ca2e71e0eba4852bd91c620bf72b00198f309f12.tar.xz zsh-ca2e71e0eba4852bd91c620bf72b00198f309f12.tar.zst zsh-ca2e71e0eba4852bd91c620bf72b00198f309f12.zip | |
48969: fix for "zle -N" completion
Diffstat (limited to 'Completion/Zsh/Command')
| -rw-r--r-- | Completion/Zsh/Command/_zle | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Zsh/Command/_zle b/Completion/Zsh/Command/_zle index e01d0a943..0b8ef7a15 100644 --- a/Completion/Zsh/Command/_zle +++ b/Completion/Zsh/Command/_zle @@ -51,11 +51,11 @@ case "$state[1]" in ;; (widget*) _wanted -C "$context[1]" widgets expl "${state_descr[1]:-widget}" _widgets && ret=0 - ;& - (function) - [[ $state[1] != *function ]] || # Handle fall-through + ;| + (*function) _wanted -C "$context[1]" functions expl 'widget shell function' \ - compadd -M 'r:|-=* r:|=*' -k functions && ret=0 + compadd -M 'r:|-=* r:|=*' -k functions && + ret=0 ;; (comp-widget) _wanted -C "$context[1]" widgets expl 'completion widget' \ |
