mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
32546: better handling of ignored files with _path_files -W prefixes
This commit is contained in:
parent
31e2ae380a
commit
d9935915b7
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-04-15 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Jun T: 32546: Completion/Unix/Type/_path_files: better handling
|
||||
of ignored files when using -W to specify prefixes.
|
||||
|
||||
2014-04-13 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 32540: Src/Zle/zle_tricky.c, Src/Zle/zle_utils.c: following
|
||||
|
|
|
@ -564,9 +564,10 @@ for prepath in "$prepaths[@]"; do
|
|||
( "$ignpar" != *dir* || "$pats" = '*(-/)' ) &&
|
||||
( "$ignpar" != *..* || "$tmp1[1]" = *../* ) ]]; then
|
||||
|
||||
compfiles -i tmp1 _comp_ignore "$ignpar" "$prepath$realpath$donepath"
|
||||
compfiles -i tmp1 ignore "$ignpar" "$prepath$realpath$donepath"
|
||||
_comp_ignore+=( ${(@)ignore#$prepath$realpath$donepath} )
|
||||
|
||||
(( $#_comp_ignore && $mopts[(I)-F] )) ||
|
||||
(( $#_comp_ignore && ! $mopts[(I)-F] )) &&
|
||||
mopts=( "$mopts[@]" -F _comp_ignore )
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue