mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-16 02:07:06 +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 {
|
type itemLine struct {
|
||||||
current bool
|
current bool
|
||||||
label string
|
selected bool
|
||||||
result Result
|
label string
|
||||||
|
result Result
|
||||||
}
|
}
|
||||||
|
|
||||||
var emptyLine = itemLine{}
|
var emptyLine = itemLine{}
|
||||||
@ -663,7 +664,7 @@ func (t *Terminal) printItem(result *Result, line int, i int, current bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Avoid unnecessary redraw
|
// Avoid unnecessary redraw
|
||||||
newLine := itemLine{current, label, *result}
|
newLine := itemLine{current, selected, label, *result}
|
||||||
if t.prevLines[i] == newLine {
|
if t.prevLines[i] == newLine {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user