mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-23 17:01:05 +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
|
@ -1,3 +1,8 @@
|
|||
2003-07-09 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 18841: Completion/Base/Completer/_prefix: work around problem
|
||||
where the unambiguous part is empty making the word be removed
|
||||
|
||||
2003-07-09 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 18839, modified c.f. 18840: Completion/Unix/Command/_nice,
|
||||
|
@ -25,9 +30,9 @@
|
|||
|
||||
2003-07-07 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 18xxx: Completion/Unix/Command/_subversion: completion for
|
||||
* 18831: Completion/Unix/Command/_subversion: completion for
|
||||
svn and svnadmin.
|
||||
* 18xxx: Completion/Debian/Command/_debsign: completion for
|
||||
* 18832: Completion/Debian/Command/_debsign: completion for
|
||||
debsign, by Matt Zimmerman.
|
||||
|
||||
2003-07-04 Oliver Kiddle <opk@zsh.org>
|
||||
|
|
|
@ -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…
Reference in a new issue