Fix update of multi-select pointer

This commit is contained in:
Junegunn Choi 2017-01-08 02:29:31 +09:00
parent a30999a785
commit 9d545f9578
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -41,9 +41,10 @@ type previewer struct {
}
type itemLine struct {
current bool
label string
result Result
current bool
selected bool
label string
result Result
}
var emptyLine = itemLine{}
@ -663,7 +664,7 @@ func (t *Terminal) printItem(result *Result, line int, i int, current bool) {
}
// Avoid unnecessary redraw
newLine := itemLine{current, label, *result}
newLine := itemLine{current, selected, label, *result}
if t.prevLines[i] == newLine {
return
}