From deac7dec248d92a1ff93406464988d85c9be39fd Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 8 Feb 2000 15:45:00 +0000 Subject: zsh-workers/9623 --- Completion/Core/_path_files | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/Core') diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index e944c8433..3454654c7 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -445,15 +445,15 @@ for prepath in "$prepaths[@]"; do if [[ "$tpre" = */* ]]; then PREFIX="${donepath}${linepath}${cpre}${tpre%%/*}" SUFFIX="/${tsuf#*/}" + tmp2="${cpre}${tpre%%/*}" else PREFIX="${donepath}${linepath}${cpre}${tpre}" SUFFIX="${tsuf}" + tmp2="${cpre}${tpre}" fi if (( $#tmp4 )) || - [[ -n "$compstate[pattern_match]" && - "${PREFIX:s/$//}${SUFFIX:s/$//}" != "${(q)PREFIX:s/$//}${(q)SUFFIX:s/$//}" ]]; then - + [[ -n "$compstate[pattern_match]" && "$tmp2" != "${(q)tmp2}" ]]; then # It is. For menucompletion we now add the possible completions # for this component with the unambigous prefix we have built # and the rest of the string from the line as the suffix. -- cgit 1.4.1