about summary refs log tree commit diff
path: root/Completion/Base/_arguments
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-11 11:27:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-11 11:27:39 +0000
commit567e221218ed1e882a42235b100b1e023b52e1b7 (patch)
treed07bd95855adec14b8f5c15ad84b0f60fdfb20cc /Completion/Base/_arguments
parent51511cd7c8e94085033641a8ffe5081f25d024d4 (diff)
downloadzsh-567e221218ed1e882a42235b100b1e023b52e1b7.tar.gz
zsh-567e221218ed1e882a42235b100b1e023b52e1b7.tar.xz
zsh-567e221218ed1e882a42235b100b1e023b52e1b7.zip
make _argument_sets add the options as defaults when there is nothing else to complete (11324)
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 ed7bd98d7..e12dca47d 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -287,9 +287,10 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then
       done
 
       if [[ -z "$matched$hasopts" ]] && _requested options &&
-          { ! zstyle -T ":completion:${curcontext}:options" prefix-needed ||
+          { [[ -n "$ismulti" ]] ||
+            ! zstyle -T ":completion:${curcontext}:options" prefix-needed ||
             [[ "$origpre" = [-+]* ||
-            ( -z "$aret$mesg" && nm -eq compstate[nmatches] ) ]] } ; then
+               ( -z "$aret$mesg" && nm -eq compstate[nmatches] ) ]] } ; then
 	local prevpre="$PREFIX" previpre="$IPREFIX"
 
 	hasopts=yes