From 27daaed7b0c1d5df43eb5671200a4ee9af8285d1 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 13 Dec 1999 12:37:39 +0000 Subject: zsh-workers/9018 --- Completion/Core/_path_files | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Completion/Core/_path_files') diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 0f1ef01fe..993d0e89a 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -6,7 +6,7 @@ local linepath realpath donepath prepath testpath exppath local tmp1 tmp2 tmp3 tmp4 i orig pre suf tpre tsuf opre osuf cpre local pats haspats=no ignore group expl addpfx addsfx remsfx -local nm=$compstate[nmatches] menu match matcher mopts +local nm=$compstate[nmatches] menu match matcher mopts atmp typeset -U prepaths exppaths @@ -366,12 +366,12 @@ for prepath in "$prepaths[@]"; do fi else if [[ "$tmp3" = */* ]]; then + atmp=( -Qf "$mopts[@]" -p "$linepath$tmp4" + -W "$prepath$realpath$testpath" "$ignore[@]" + "$addpfx[@]" "$addsfx[@]" "$remsfx[@]" + -M "r:|/=* r:|=* $match" "$group[@]" "$expl[@]" ) for i in "$tmp1[@]"; do - compadd -Qf "$mopts[@]" -p "$linepath$tmp4" -s "/${i#*/}" \ - -W "$prepath$realpath$testpath" "$ignore[@]" \ - "$addpfx[@]" "$addsfx[@]" "$remsfx[@]" \ - -M "r:|/=* r:|=* $match" "$group[@]" "$expl[@]" \ - - "${i%%/*}" + compadd "$atmp[@]" -s "/${i#*/}" - "${i%%/*}" done else compadd -Qf "$mopts[@]" -p "$linepath$tmp4" \ -- cgit 1.4.1