about summary refs log tree commit diff
path: root/Completion/Core/_alternative
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/_alternative')
-rw-r--r--Completion/Core/_alternative5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Core/_alternative b/Completion/Core/_alternative
index b038aa8a4..d6aef96b6 100644
--- a/Completion/Core/_alternative
+++ b/Completion/Core/_alternative
@@ -66,8 +66,9 @@ while _tags; do
         # Otherwise we call it with the description-arguments built above.
 
         eval "action=( $action )"
-        _all_labels "${def%%:*}" expl "$descr" \
-            "$action[1]" "$subopts[@]" "${(@)action[2,-1]}"
+	while _next_label "${def%%:*}" expl "$descr"; do
+          "$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
+        done
       fi
     fi
   done