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