From a48427e75a4a3fb8482af714b1b80eef4d867b64 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 10 Feb 2000 15:35:21 +0000 Subject: zsh-workers/9664 --- Completion/Core/_path_files | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Completion/Core/_path_files') diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 5ff8d7dd5..cac4acd54 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -415,9 +415,9 @@ for prepath in "$prepaths[@]"; do # Next we see if this component is ambiguous. if [[ "$tmp3" = */* ]]; then - tmp4=( "${(@)tmp1:#${tmp1[1]%%/*}/*}" ) + tmp4=$tmp1[(I)^${tmp1[1]%%/*}/*] else - tmp4=( "${(@)tmp1:#${tmp1[1]}}" ) + tmp4=$tmp1[(I)^${tmp1[1]}] fi if [[ "$tpre" = */* ]]; then @@ -430,7 +430,7 @@ for prepath in "$prepaths[@]"; do tmp2="${cpre}${tpre}" fi - if (( $#tmp4 )) || + if (( tmp4 )) || [[ -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 @@ -444,7 +444,7 @@ for prepath in "$prepaths[@]"; do if [[ -n $menu ]] || ! zstyle -t ":completion:${curcontext}:paths" expand suffix; then - (( $#tmp4 )) && zstyle -t ":completion:${curcontext}:paths" cursor && + (( tmp4 )) && zstyle -t ":completion:${curcontext}:paths" cursor && compstate[to_end]='' if [[ "$tmp3" = */* ]]; then compadd -Qf "$mopts[@]" -p "$linepath$tmp2" -s "/${tmp3#*/}" \ -- cgit 1.4.1