1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +02:00

next try to get rid of empty strings being added as possible completion by _multi_parts (13830)

This commit is contained in:
Sven Wischnowsky 2001-03-29 08:39:39 +00:00
parent 7fd57d5473
commit 2249e5c319
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2001-03-29 Sven Wischnowsky <wischnow@zsh.org>
* 13830: Completion/Core/_multi_parts: next try to get rid of
empty strings being added as possible completion by
_multi_parts
2001-03-28 Bart Schaefer <schaefer@zsh.org>
* 12724: Doc/Zsh/builtins.yo: Nobody has come up with a better fix

View file

@ -91,10 +91,10 @@ while true; do
else
# No exact match, see how many strings match what's on the line.
builtin compadd -O tmp1 - "${(@)matches%%${sep}*}"
builtin compadd -O tmp1 - "${(@)${(@)matches%%${sep}*}:#}"
[[ $#tmp1 -eq 0 && -n "$_comp_correct" ]] &&
compadd -O tmp1 - "${(@)matches%%${sep}*}"
compadd -O tmp1 - "${(@)${(@)matches%%${sep}*}:#}"
if [[ $#tmp1 -eq 1 ]]; then