fix backward in complete select mode

This commit is contained in:
Cheney 2015-09-26 10:34:29 +08:00
parent 1ff4e718ab
commit e2dc5c8314
1 changed files with 1 additions and 3 deletions

View File

@ -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 {