diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-18 10:01:55 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-18 10:01:55 +0000 |
commit | 4f2474fbf4f0ae8637b2a4d29a285ed94cc6a31b (patch) | |
tree | e2e23ded75d8ee7010ad683e821c07e47147ae4b /Completion/Core | |
parent | 08edecfbe212e3faee1da3d6277c6dff22e6cd6b (diff) | |
download | zsh-4f2474fbf4f0ae8637b2a4d29a285ed94cc6a31b.tar.gz zsh-4f2474fbf4f0ae8637b2a4d29a285ed94cc6a31b.tar.xz zsh-4f2474fbf4f0ae8637b2a4d29a285ed94cc6a31b.zip |
zsh-workers/9335
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_path_files | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 79cf3804f..a53c5e10d 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -264,27 +264,26 @@ for prepath in "$prepaths[@]"; do if [[ "$tpre$tsuf" = */* ]]; then tmp2=( ${^tmp1}*(-/) ) - if [[ ! -o globdots && "$PREFIX" = .* ]]; then - tmp2=( "$tmp2[@]" ${^tmp1}.*(-/) ) - if zstyle -s ":completion${curcontext}:paths" special-dirs atmp; then - if [[ "$atmp" = (yes|true|1|on) ]]; then - tmp2=( "$tmp2[@]" . .. ) - elif [[ "$atmp" = .. ]]; then - tmp2=( "$tmp2[@]" .. ) - fi + [[ ! -o globdots && "$PREFIX" = .* ]] && + tmp2=( "$tmp2[@]" ${^tmp1}.*(-/) ) + if [[ -o globdots || "$PREFIX" = .* ]] && + zstyle -s ":completion${curcontext}:paths" special-dirs atmp; then + if [[ "$atmp" = (yes|true|1|on) ]]; then + tmp2=( "$tmp2[@]" . .. ) + elif [[ "$atmp" = .. ]]; then + tmp2=( "$tmp2[@]" .. ) fi fi else tmp2=( ${^tmp1}${^~pats} ) - if [[ ! -o globdots && "$PREFIX" = .* ]]; then - tmp2=( "$tmp2[@]" ${^tmp1}.${^~pats} ) - if [[ "$sopt" = */* ]] && - zstyle -s ":completion${curcontext}:paths" special-dirs atmp; then - if [[ "$atmp" = (yes|true|1|on) ]]; then - tmp2=( "$tmp2[@]" . .. ) - elif [[ "$atmp" = .. ]]; then - tmp2=( "$tmp2[@]" .. ) - fi + [[ ! -o globdots && "$PREFIX" = .* ]] && + tmp2=( "$tmp2[@]" ${^tmp1}.${^~pats} ) + if [[ "$sopt" = *[/f]* && ( -o globdots || "$PREFIX" = .* ) ]] && + zstyle -s ":completion${curcontext}:paths" special-dirs atmp; then + if [[ "$atmp" = (yes|true|1|on) ]]; then + tmp2=( "$tmp2[@]" . .. ) + elif [[ "$atmp" = .. ]]; then + tmp2=( "$tmp2[@]" .. ) fi fi fi |