mirror of https://github.com/chzyer/readline.git
Fixed: Autocomplete adds unwanted space (ASCII 32)(Issue #190)
This commit is contained in:
parent
8e4bd417b9
commit
e28fe75522
|
@ -123,7 +123,9 @@ func (o *opCompleter) HandleCompleteSelect(r rune) bool {
|
|||
switch r {
|
||||
case CharEnter, CharCtrlJ:
|
||||
next = false
|
||||
o.op.buf.WriteRunes(o.op.candidate[o.op.candidateChoise])
|
||||
target := o.op.candidate[o.op.candidateChoise]
|
||||
target = target[:len(target)-1]
|
||||
o.op.buf.WriteRunes()
|
||||
o.ExitCompleteMode(false)
|
||||
case CharLineStart:
|
||||
num := o.candidateChoise % o.candidateColNum
|
||||
|
|
Loading…
Reference in New Issue