summaryrefslogtreecommitdiff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Zsh/Command/_zle2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_zle b/Completion/Zsh/Command/_zle
index 1e787e54f..a1fe136c5 100644
--- a/Completion/Zsh/Command/_zle
+++ b/Completion/Zsh/Command/_zle
@@ -46,9 +46,9 @@ while (( $#state )); do
;;
(widget*)
_wanted -C "$context[1]" widgets expl widget compadd -k widgets && ret=0
- [[ $st != *function ]] && continue
;&
(function)
+ [[ $state[1] != *function ]] || # Handle fall-through
_wanted -C "$context[1]" functions expl 'widget shell function' \
compadd -k functions && ret=0
;;