diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-24 12:35:07 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-24 12:35:07 +0000 |
commit | a2876b6db3e25ab7c5f7df10806d6f0b45b89514 (patch) | |
tree | 9b88c88737985c50b206eae2c239ffb7517862a7 /Completion/Core/_path_files | |
parent | ad108b32774ef7860c280c4609aa178c15e6b759 (diff) | |
download | zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar.gz zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar.xz zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.zip |
zsh-workers/10230
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r-- | Completion/Core/_path_files | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index d5feaa540..11445c204 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -142,8 +142,9 @@ eorig="$orig" # If given no `-F' option, we may want to use $fignore, turned into patterns. -[[ $#ignore -eq 0 && ( -z $gopt || "$pats" = \ #\*\ # ) && -n $FIGNORE ]] && - ignore=( "?*${^fignore[@]}" ) +[[ -z "$_comp_no_ignore" && $#ignore -eq 0 && + ( -z $gopt || "$pats" = \ #\*\ # ) && -n $FIGNORE ]] && + ignore=( "?*${^fignore[@]}" ) if (( $#ignore )); then _comp_ignore=( "$_comp_ignore[@]" "$ignore[@]" ) @@ -350,7 +351,7 @@ for prepath in "$prepaths[@]"; do continue 2 fi - if [[ "$tpre$tsuf" != */* && $#tmp1 -ne 0 ]] && + if [[ -z "$_comp_no_ignore" && "$tpre$tsuf" != */* && $#tmp1 -ne 0 ]] && zstyle -s ":completion:${curcontext}:files" ignore-parents rem && [[ ( "$rem" != *dir* || "$pats" = '*(-/)' ) && ( "$rem" != *..* || "$tmp1" = *../* ) ]]; then |