diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
commit | 626e2aeb1657f112feb6d03c34bb9e9f44764c75 (patch) | |
tree | 9e4a306df7b5826a796b99f0b6ffa3423ee9f5f9 /Completion/Core/_path_files | |
parent | 766fcd5ee2ef632cd982a1ec118dbdfde17c03a8 (diff) | |
download | zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.gz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.xz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.zip |
zsh-workers/10195
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r-- | Completion/Core/_path_files | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index ad956bb72..21ca05529 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -20,7 +20,7 @@ exppaths=() zparseopts -a mopts \ 'P:=pfxsfx' 'S:=pfxsfx' 'q=pfxsfx' 'r:=pfxsfx' 'R:=pfxsfx' \ 'W:=prepaths' 'F:=ignore' 'M+:=matcher' \ - J: V: X: 1: 2: n: 'f=tmp1' '/=tmp1' 'g+:-=tmp1' + J+: V+: X+: 1: 2: n: 'f=tmp1' '/=tmp1' 'g+:-=tmp1' sopt="-${(@j::M)${(@)tmp1#-}#?}" (( $tmp1[(I)-[/g]*] )) && haspats=yes @@ -54,20 +54,6 @@ if (( $#ignore )); then fi fi -if [[ -z "$_file_pat_checked" ]] && - zstyle -s ":completion:${curcontext}:files" file-patterns tmp1 && - [[ -n "$tmp1" ]]; then - if [[ "$tmp1" = '*(-/)' ]]; then - gopt='' - sopt=-/ - else - gopt=yes - sopt=- - fi - pats=( $=tmp1 ) - haspats=yes -fi - # If we were given no file selection option, we behave as if we were given # a `-f'. @@ -155,7 +141,7 @@ eorig="$orig" # If given no `-F' option, we may want to use $fignore, turned into patterns. -[[ $#ignore -eq 0 && -z $gopt && -n $FIGNORE ]] && +[[ $#ignore -eq 0 && ( -z $gopt || "$pats" = \ #\*\ # ) && -n $FIGNORE ]] && ignore=( "?*${^fignore[@]}" ) if (( $#ignore )); then |