about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-08 15:45:00 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-08 15:45:00 +0000
commitdeac7dec248d92a1ff93406464988d85c9be39fd (patch)
tree18c7866161c15094141a16a7d49ebb13778d87bc
parent0d95b4991a0fe2e59ac08350548524d8e83e45d9 (diff)
downloadzsh-deac7dec248d92a1ff93406464988d85c9be39fd.tar.gz
zsh-deac7dec248d92a1ff93406464988d85c9be39fd.tar.xz
zsh-deac7dec248d92a1ff93406464988d85c9be39fd.zip
zsh-workers/9623
-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 e944c8433..3454654c7 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -445,15 +445,15 @@ for prepath in "$prepaths[@]"; do
     if [[ "$tpre" = */* ]]; then
       PREFIX="${donepath}${linepath}${cpre}${tpre%%/*}"
       SUFFIX="/${tsuf#*/}"
+      tmp2="${cpre}${tpre%%/*}"
     else
       PREFIX="${donepath}${linepath}${cpre}${tpre}"
       SUFFIX="${tsuf}"
+      tmp2="${cpre}${tpre}"
     fi
 
     if (( $#tmp4 )) ||
-       [[ -n "$compstate[pattern_match]" &&
-          "${PREFIX:s/$//}${SUFFIX:s/$//}" != "${(q)PREFIX:s/$//}${(q)SUFFIX:s/$//}" ]]; then
-
+       [[ -n "$compstate[pattern_match]" && "$tmp2" != "${(q)tmp2}" ]]; then
       # It is. For menucompletion we now add the possible completions
       # for this component with the unambigous prefix we have built
       # and the rest of the string from the line as the suffix.