diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_path_files | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index bc3a52e5c..ad956bb72 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -346,9 +346,13 @@ for prepath in "$prepaths[@]"; do # if none of the patterns match. if [[ -z "$tpre$tsuf" && -n "$pre$suf" ]]; then - tmp1=( "$tmp2[@]" ) pfxsfx=(-S '' "$pfxsfx[@]") - break + ### Don't remember what the break was good for. We explicitly + ### execute this only when there are no matches in the directory, + ### so why continue? + ### + ### tmp1=( "$tmp2[@]" ) + ### break elif [[ "$haspats" = no && -z "$tpre$tsuf" && "$pre" = */ && -z "$suf" ]]; then PREFIX="${opre}" |