diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
commit | 35b2633ad941966f5fca07b625a594a5b68c0fdb (patch) | |
tree | b54740d014e594ba5d81931cdcdb3387bcf9dfca /Completion/Core/_path_files | |
parent | bb98460a01ce1f6c1e71f7e401f782c81b71486b (diff) | |
download | zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.gz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.xz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.zip |
manual/8639
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r-- | Completion/Core/_path_files | 12 |
1 files changed, 6 insertions, 6 deletions
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[@]" \ |