mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-03 08:11:03 +02:00
don't use _comp_ignore while building paths, only at end (16076)
This commit is contained in:
parent
4932cbac1b
commit
d727200bff
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-10-17 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
|
* 16076: Completion/Unix/Type/_path_files: don't use
|
||||||
|
_comp_ignore while building paths, only at end
|
||||||
|
|
||||||
2001-10-16 Peter Stephenson <pws@csr.com>
|
2001-10-16 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 16065: Doc/Zsh/metafaq.yo: sourceforge.
|
* 16065: Doc/Zsh/metafaq.yo: sourceforge.
|
||||||
|
|
|
@ -351,19 +351,19 @@ for prepath in "$prepaths[@]"; do
|
||||||
elif [[ "$tmp1[1]" = */* ]]; then
|
elif [[ "$tmp1[1]" = */* ]]; then
|
||||||
if [[ -n "$_comp_correct" ]]; then
|
if [[ -n "$_comp_correct" ]]; then
|
||||||
tmp2=( "$tmp1[@]" )
|
tmp2=( "$tmp1[@]" )
|
||||||
builtin compadd -D tmp1 -F _comp_ignore "$matcher[@]" - "${(@)tmp1:t}"
|
builtin compadd -D tmp1 "$matcher[@]" - "${(@)tmp1:t}"
|
||||||
|
|
||||||
if [[ $#tmp1 -eq 0 ]]; then
|
if [[ $#tmp1 -eq 0 ]]; then
|
||||||
tmp1=( "$tmp2[@]" )
|
tmp1=( "$tmp2[@]" )
|
||||||
compadd -D tmp1 -F _comp_ignore "$matcher[@]" - "${(@)tmp2:t}"
|
compadd -D tmp1 "$matcher[@]" - "${(@)tmp2:t}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
tmp2=( "$tmp1[@]" )
|
tmp2=( "$tmp1[@]" )
|
||||||
compadd -D tmp1 -F _comp_ignore "$matcher[@]" - "${(@)tmp1:t}"
|
compadd -D tmp1 "$matcher[@]" - "${(@)tmp1:t}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
tmp2=( '' )
|
tmp2=( '' )
|
||||||
compadd -D tmp1 -F _comp_ignore "$matcher[@]" -a tmp1
|
compadd -D tmp1 "$matcher[@]" -a tmp1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If no file matches, save the expanded path and continue with
|
# If no file matches, save the expanded path and continue with
|
||||||
|
|
Loading…
Reference in a new issue