From 4540e0eba52dab45a94a8451084d7333a61b7307 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 21 Oct 1999 02:25:15 +0000 Subject: zsh-workers/8340 --- Completion/Core/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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=() -- cgit 1.4.1