mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-11 04:20:01 +01:00
48969: fix for "zle -N" completion
This commit is contained in:
parent
a31fd3077d
commit
ca2e71e0eb
@ -1,5 +1,7 @@
|
||||
2021-09-06 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Marlon Richert: 48969: fix for "zle -N" completion
|
||||
|
||||
* 48888: Doc/Zsh/mod_system.yo, Doc/Zsh/params.yo, Test/E03posix.ztst:
|
||||
improve doc for $$ and $PPID, add fail test for PPID readonly-ness
|
||||
|
||||
|
@ -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' \
|
||||
|
Loading…
Reference in New Issue
Block a user