From 6c83502a49f124f1d66640353334f3b1ccdb8ddc Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 28 Feb 2000 13:24:01 +0000 Subject: zsh-workers/9902 --- Completion/Core/_path_files | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Completion') 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}" -- cgit 1.4.1