From 0ec5c1b8a57d207c4d8b6a0acdd3f1fbae165a35 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 28 Jan 2000 09:12:23 +0000 Subject: zsh-workers/9452 --- Completion/Base/_arguments | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion') 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" -- cgit 1.4.1