mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-04 20:47:49 +00:00
Fix update of multi-select pointer
This commit is contained in:
parent
a30999a785
commit
9d545f9578
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user