about summary refs log tree commit diff
diff options
context:
space:
mode:
-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"