1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 10:20:55 +01:00

43928: _alternative: Evaluate (...) action syntax as with _arguments

This commit is contained in:
dana 2018-12-23 07:36:11 -06:00
parent c19a0927e1
commit e75c59f7f5
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2018-12-17 dana <dana@dana.is>
* 43928: Completion/Base/Utility/_alternative: Evaluate (...)
action syntax as with _arguments
2018-12-21 Bart Schaefer <schaefer@zsh.org>
* 43921: ${\var} should be an error

View file

@ -43,8 +43,10 @@ while _tags; do
# Anything inside `(...)' is added directly.
eval ws\=\( "${action[2,-2]}" \)
_all_labels "${def%%:*}" expl "$descr" \
compadd "$subopts[@]" - ${=action[2,-2]}
compadd "$subopts[@]" -a - ws
elif [[ "$action" = \{*\} ]]; then
# A string in braces is evaluated.