diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 17:35:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 17:35:20 +0000 |
commit | 8bc41ba869dbbd3c6bc2c8f2338c740311074f23 (patch) | |
tree | d595aeb0a5e399d4cb6a7dfd3818c395e9118ec0 /Completion/Base/_tilde | |
parent | e401df24821d873eba579d2961a0886881b0acf6 (diff) | |
download | zsh-8bc41ba869dbbd3c6bc2c8f2338c740311074f23.tar.gz zsh-8bc41ba869dbbd3c6bc2c8f2338c740311074f23.tar.xz zsh-8bc41ba869dbbd3c6bc2c8f2338c740311074f23.zip |
manual/9058
Diffstat (limited to 'Completion/Base/_tilde')
-rw-r--r-- | Completion/Base/_tilde | 4 |
1 files changed, 2 insertions, 2 deletions
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 |