From eb85a72ad95cfa0bf6c39b806407c34946c71a2d Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 18 Oct 1999 12:11:38 +0000 Subject: zsh-workers/8322 --- Completion/Core/_path_files | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Completion/Core/_path_files') diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 6e23f46aa..4bdde4d20 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -277,7 +277,12 @@ for prepath in "$prepaths[@]"; do # otherwise this would keep `_files' from completing all filenames # if none of the patterns match. - if [[ "$haspats" = no && -z "$tpre$tsuf" && + if [[ -z "$tpre$tsuf" ]]; then + tmp1=( "$tmp2[@]" ) + addsfx=(-S '') + remsfx=() + break; + elif [[ "$haspats" = no && -z "$tpre$tsuf" && "$pre" = */ && -z "$suf" ]]; then PREFIX="${opre}${osuf}" SUFFIX="" -- cgit 1.4.1