1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

18841: work around problem which caused the whole word to be removed

This commit is contained in:
Oliver Kiddle 2003-07-09 15:53:23 +00:00
parent 48dbd4a65c
commit ec8418cf1c
2 changed files with 12 additions and 3 deletions

View file

@ -48,7 +48,11 @@ for tmp in "$comp[@]"; do
[[ compstate[nmatches] -gt 1 ]] && return 0
compadd -U -i "$IPREFIX" -I "$ISUFFIX" - "${compstate[unambiguous]%$suf}x"
compstate[list]=
compstate[insert]=unambiguous
if [[ -n $compstate[unambiguous] ]]; then
compstate[insert]=unambiguous
else
compstate[insert]=0
fi
return 0
fi
(( _matcher_num++ ))