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:
parent
48dbd4a65c
commit
ec8418cf1c
2 changed files with 12 additions and 3 deletions
|
@ -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++ ))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue