summaryrefslogtreecommitdiff
path: root/Completion/Base/_arguments
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-07 12:43:31 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-07 12:43:31 +0000
commitd779b43f42b331841f6ffa973f77f9fb97811b84 (patch)
tree37ba3860599cb4aac9482bc2c577d196d5bcc2c0 /Completion/Base/_arguments
parent424ad9fc1d213316e9eb6da8f9040d48a211f46b (diff)
downloadzsh-d779b43f42b331841f6ffa973f77f9fb97811b84.tar.gz
zsh-d779b43f42b331841f6ffa973f77f9fb97811b84.zip
make sure caller-supplied explanation takes precedence (10579)
Diffstat (limited to 'Completion/Base/_arguments')
-rw-r--r--Completion/Base/_arguments5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 29e5764fe..f633b7cf5 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -258,8 +258,9 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
# Otherwise we call it with the description-arguments.
eval "action=( $action )"
- _all_labels arguments expl "$descr" \
- "$action[1]" "$subopts[@]" "${(@)action[2,-1]}"
+ while _next_label arguments expl "$descr"; do
+ "$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
+ done
fi
fi
fi