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-21 02:25:15 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-21 02:25:15 +0000
commit4540e0eba52dab45a94a8451084d7333a61b7307 (patch)
treeb5a6d0cfa72c3a121267f9d754a4b69118c890f5 /Completion/Core/_path_files
parent95230a1684a7d864a5db128b8fc56669c6555ded (diff)
downloadzsh-4540e0eba52dab45a94a8451084d7333a61b7307.tar.gz
zsh-4540e0eba52dab45a94a8451084d7333a61b7307.tar.xz
zsh-4540e0eba52dab45a94a8451084d7333a61b7307.zip
zsh-workers/8340
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r--Completion/Core/_path_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 4bdde4d20..3fc37191a 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -277,7 +277,7 @@ for prepath in "$prepaths[@]"; do
       # otherwise this would keep `_files' from completing all filenames
       # if none of the patterns match.
 
-      if [[ -z "$tpre$tsuf" ]]; then
+      if [[ -z "$tpre$tsuf" && -n "$pre$suf" ]]; then
         tmp1=( "$tmp2[@]" )
 	addsfx=(-S '')
 	remsfx=()