about summary refs log tree commit diff
path: root/Completion/Base/_values
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/_values')
-rw-r--r--Completion/Base/_values9
1 files changed, 6 insertions, 3 deletions
diff --git a/Completion/Base/_values b/Completion/Base/_values
index 754147e05..e681d88ef 100644
--- a/Completion/Base/_values
+++ b/Completion/Base/_values
@@ -124,14 +124,17 @@ if compvalues -i "$@"; then
 
       # A string in braces is evaluated.
 
-      _loop arguments expl "$descr" eval "$action[2,-2]"
-
+      while _try arguments expl "$descr"; do
+        eval "$action[2,-2]"
+      done
     elif [[ "$action" = \ * ]]; then
 
       # If the action starts with a space, we just call it.
 
       eval "action=( $action )"
-      _loop arguments expl "$descr" "$action[@]"
+      while _try arguments expl "$descr"; do
+        "$action[@]"
+      done
     else
 
       # Otherwise we call it with the description-arguments built above.