about summary refs log tree commit diff
path: root/Completion/Base/_values
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-01 07:18:43 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-01 07:18:43 +0000
commit3896f72f4d4364af53a2ec3be727cf288e917949 (patch)
tree23501f775f35a51888bba8beee2c09a4f6c4b3f6 /Completion/Base/_values
parent4f9ff8206ba046343c77bb7698c2e66cc5b4edf2 (diff)
downloadzsh-3896f72f4d4364af53a2ec3be727cf288e917949.tar.gz
zsh-3896f72f4d4364af53a2ec3be727cf288e917949.tar.xz
zsh-3896f72f4d4364af53a2ec3be727cf288e917949.zip
make $compcontext more powerful and easier to use for simple cases (12449)
Diffstat (limited to 'Completion/Base/_values')
-rw-r--r--Completion/Base/_values5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Base/_values b/Completion/Base/_values
index 39c8df201..cb90ed578 100644
--- a/Completion/Base/_values
+++ b/Completion/Base/_values
@@ -119,8 +119,9 @@ if compvalues -i "$@"; then
 
       # Anything inside `(...)' is added directly.
 
-      _all_labels arguments expl "$descr" \
-          compadd "$subopts[@]" - ${=action[2,-2]}
+      eval ws\=\( "${action[2,-2]}" \)
+
+      _all_labels arguments expl "$descr" compadd "$subopts[@]" -a - ws
     elif [[ "$action" = \{*\} ]]; then
 
       # A string in braces is evaluated.