forked from mirror/readline
fix backward in complete select mode
This commit is contained in:
parent
1ff4e718ab
commit
e2dc5c8314
|
@ -134,9 +134,7 @@ func (o *opCompleter) HandleCompleteSelect(r rune) bool {
|
||||||
}
|
}
|
||||||
o.candicateChoise = tmpChoise
|
o.candicateChoise = tmpChoise
|
||||||
case CharBackward:
|
case CharBackward:
|
||||||
if o.op.buf.Len() > 0 {
|
o.nextCandicate(-1)
|
||||||
o.nextCandicate(-1)
|
|
||||||
}
|
|
||||||
case CharPrev:
|
case CharPrev:
|
||||||
tmpChoise := o.candicateChoise - o.candicateColNum
|
tmpChoise := o.candicateChoise - o.candicateColNum
|
||||||
if tmpChoise < 0 {
|
if tmpChoise < 0 {
|
||||||
|
|
Loading…
Reference in New Issue