From 35b2633ad941966f5fca07b625a594a5b68c0fdb Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 15 Nov 1999 12:01:46 +0000 Subject: manual/8639 --- 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 6468215cc..41956d543 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -331,11 +331,11 @@ for prepath in "$prepaths[@]"; do SUFFIX="${tsuf}" fi -tmp4="$testpath" -compquote tmp1 tmp4 + tmp4="$testpath" + compquote tmp1 tmp4 - if [[ -n $menu || "$compconfig[path_expand]" != *suffix* ]]; then - [[ -n "$compconfig[path_cursor]" ]] && compstate[to_end]='' + if [[ -n $menu ]] || ! _style paths expand '*suffix*'; then + _style paths cursor && compstate[to_end]='' if [[ "$tmp3" = */* ]]; then compadd -Qf -p "$linepath$tmp4" -s "/${tmp3#*/}" \ -W "$prepath$realpath$testpath" "$ignore[@]" \ @@ -423,8 +423,8 @@ done exppaths=( "${(@)exppaths:#$orig}" ) -if [[ "$compconfig[path_expand]" = *prefix* && - $#exppaths -gt 0 && nm -eq compstate[nmatches] ]]; then +if _style paths expand '*prefix*' && + [[ $#exppaths -gt 0 && nm -eq compstate[nmatches] ]]; then PREFIX="${opre}" SUFFIX="${osuf}" compadd -Q -S '' "$group[@]" "$expl[@]" \ -- cgit 1.4.1