about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-28 09:12:23 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-28 09:12:23 +0000
commit0ec5c1b8a57d207c4d8b6a0acdd3f1fbae165a35 (patch)
tree034920c4bdab6246b63b2b92c57fd3907c55875e /Completion
parentbaa179f2b36fba2309ce46ba8c8fdfc581bd619c (diff)
downloadzsh-0ec5c1b8a57d207c4d8b6a0acdd3f1fbae165a35.tar.gz
zsh-0ec5c1b8a57d207c4d8b6a0acdd3f1fbae165a35.tar.xz
zsh-0ec5c1b8a57d207c4d8b6a0acdd3f1fbae165a35.zip
zsh-workers/9452
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/_arguments4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 5ff2f6311..fe98240ce 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -258,7 +258,7 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
         fi
       fi
 
-      if [[ -z "$matched" ]] && _requested options &&
+      if [[ -z "$matched$mesg" ]] && _requested options &&
           { ! zstyle -t ":completion${curcontext}:options" prefix-needed ||
             [[ "$origpre" = [-+]* ||
                ( -z "$aret$mesg" && nm -eq compstate[nmatches] ) ]] } ; then
@@ -301,7 +301,7 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
 	IPREFIX="$previpre"
       fi
     done
-    if [[ -n "$opts" && -z "$aret$matched" &&
+    if [[ -n "$opts" && -z "$aret$matched$mesg" &&
           nm -eq compstate[nmatches] ]]; then
 
       PREFIX="$origpre"