mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-07 10:01:37 +01:00
41971: correctly break out of certain tag loops when there are matches
This commit is contained in:
parent
bf04ffb542
commit
0ebf336489
4 changed files with 11 additions and 8 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2017-11-02 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 41971: Completion/Linux/Command/_modutils,
|
||||
Completion/Unix/Command/_make, Completion/Zsh/Command/_zmodload:
|
||||
correctly break out of certain tag loops when there are matches
|
||||
|
||||
2017-11-02 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* Martijn: 41866: Src/builtin.c, Src/hashtable.c: no error for
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ _modutils() {
|
|||
while _tags; do
|
||||
_requested files expl "module file" _files -g '*.ko(-.)' && ret=0
|
||||
_requested modules expl module compadd -a modules && ret=0
|
||||
(( ret )) || break
|
||||
done
|
||||
;;
|
||||
|
||||
|
|
|
|||
|
|
@ -287,14 +287,9 @@ _make() {
|
|||
compset -P 1 '*='
|
||||
_value "$@" && ret=0
|
||||
else
|
||||
_tags targets variables
|
||||
while _tags
|
||||
do
|
||||
_requested targets expl 'make targets' \
|
||||
compadd -Q -- $TARGETS && ret=0
|
||||
_requested variables expl 'make variables' \
|
||||
compadd -S '=' -F keys -- ${(k)VARIABLES} && ret=0
|
||||
done
|
||||
_alternative \
|
||||
'targets:make target:compadd -Q -a TARGETS' \
|
||||
'variables:make variable:compadd -S = -F keys -k VARIABLES' && ret=0
|
||||
fi
|
||||
esac
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ else
|
|||
_files -W module_path -g '*.(dll|s[ol]|bundle)(:r)' && ret=0
|
||||
_requested aliases expl 'module alias' \
|
||||
compadd "$suf[@]" -k 'modules[(R)alias*]' && ret=0
|
||||
(( ret )) || return 0
|
||||
done
|
||||
return ret
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue