1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02: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

@ -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.