diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-02 21:56:58 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-02 21:56:58 +0000 |
commit | 6532fa34bae3fc767cc66af8489038fde3e3b0da (patch) | |
tree | 7849c4329e24fd5de5f0f394a0a7dfe734f93b24 | |
parent | 9a98d9ed964bc7b842a6a186d73cf0553a84c03c (diff) | |
download | zsh-6532fa34bae3fc767cc66af8489038fde3e3b0da.tar.gz zsh-6532fa34bae3fc767cc66af8489038fde3e3b0da.tar.xz zsh-6532fa34bae3fc767cc66af8489038fde3e3b0da.zip |
zsh-workers/8494
-rw-r--r-- | Completion/Core/_path_files | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 9b2b332b0..c9e2e34e9 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -316,7 +316,7 @@ for prepath in "$prepaths[@]"; do # collected as the suffixes to make the completion code expand # it as far as possible. - if [[ "$tsuf" = */* ]]; then + if [[ "$tpre" = */* ]]; then PREFIX="${donepath}${linepath}${cpre}${tpre%%/*}" SUFFIX="/${tsuf#*/}" else @@ -390,8 +390,8 @@ for prepath in "$prepaths[@]"; do done if [[ -z "$tmp4" ]]; then - PREFIX="${opre}" - SUFFIX="${osuf}" + PREFIX="${opre}${osuf}" + SUFFIX="" compadd -Qf -p "$linepath${testpath:q}" \ -W "$prepath$realpath$testpath" "$ignore[@]" \ "$addpfx[@]" "$addsfx[@]" "$remsfx[@]" \ |