about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-02 21:56:58 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-02 21:56:58 +0000
commit6532fa34bae3fc767cc66af8489038fde3e3b0da (patch)
tree7849c4329e24fd5de5f0f394a0a7dfe734f93b24
parent9a98d9ed964bc7b842a6a186d73cf0553a84c03c (diff)
downloadzsh-6532fa34bae3fc767cc66af8489038fde3e3b0da.tar.gz
zsh-6532fa34bae3fc767cc66af8489038fde3e3b0da.tar.xz
zsh-6532fa34bae3fc767cc66af8489038fde3e3b0da.zip
zsh-workers/8494
-rw-r--r--Completion/Core/_path_files6
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[@]" \