From 8bc41ba869dbbd3c6bc2c8f2338c740311074f23 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 15 Dec 1999 17:35:20 +0000 Subject: manual/9058 --- Completion/Base/_tilde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Base/_tilde') diff --git a/Completion/Base/_tilde b/Completion/Base/_tilde index bba928f50..128fd7ffa 100644 --- a/Completion/Base/_tilde +++ b/Completion/Base/_tilde @@ -4,7 +4,7 @@ # for you or if there are too many of them, you may want to use # `compadd -qS/ - "$friends[@]"' or something like that. -local expl suf dirs list lines revlines i ret disp +local expl suf dirs list lines revlines i ret disp nm="$compstate[nmatches]" if [[ "$SUFFIX" = */* ]]; then ISUFFIX="/${SUFFIX#*/}$ISUFFIX" @@ -23,7 +23,7 @@ while _tags; do if _requested -V directory-stack expl 'directory stack' && { ! zstyle -t ":completion${curcontext}:directory-stack" prefix-needed || - [[ "$PREFIX" = [-+]* ]] }; then + [[ "$PREFIX" = [-+]* || nm -eq compstate[nmatches] ]] }; then if zstyle -t ":completion${curcontext}:directory-stack" verbose; then integer i -- cgit 1.4.1