about summary refs log tree commit diff
path: root/Completion/Core/_path_files
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-18 09:46:07 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-18 09:46:07 +0000
commit437294af796f2c1530ef942f53c823ba0753556f (patch)
tree0ed0cf72a78272e2da5fb8ccca1d131a9c3f2ddd /Completion/Core/_path_files
parentb852c1f6cf50aaa37c9d2e8cbeb63f74b9e5d01f (diff)
downloadzsh-437294af796f2c1530ef942f53c823ba0753556f.tar.gz
zsh-437294af796f2c1530ef942f53c823ba0753556f.tar.xz
zsh-437294af796f2c1530ef942f53c823ba0753556f.zip
zsh-workers/8313
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r--Completion/Core/_path_files4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index eb9c06da6..6e23f46aa 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -347,7 +347,7 @@ for prepath in "$prepaths[@]"; do
 	SUFFIX=""
       fi
 
-      if [[ -n $menu ]]; then
+      if [[ -n $menu || "$compconfig[path_expand]" != *suffix* ]]; then
         [[ -n "$compconfig[path_cursor]" ]] && compstate[to_end]=''
         if [[ "$tmp3" = */* ]]; then
 	  compadd -Qf -p "$linepath${testpath:q}" -s "/${tmp3#*/}" \
@@ -418,7 +418,7 @@ done
 
 exppaths=( "${(@)exppaths:#$orig}" )
 
-if [[ -n "$compconfig[path_expand]" &&
+if [[ "$compconfig[path_expand]" = *prefix* &&
       $#exppaths -gt 0 && nm -eq compstate[nmatches] ]]; then
   PREFIX="${opre}${osuf}"
   SUFFIX=""