diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_path_files | 2 |
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=() |