From 6532fa34bae3fc767cc66af8489038fde3e3b0da Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 2 Nov 1999 21:56:58 +0000 Subject: zsh-workers/8494 --- Completion/Core/_path_files | 6 +++--- 1 file 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[@]" \ -- cgit 1.4.1