mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-18 02:55:11 +00:00
Avoid superfluous update of scrollbar
This commit is contained in:
parent
aa71a07fbe
commit
3761dc0433
@ -1423,6 +1423,7 @@ func (t *Terminal) printItem(result Result, line int, i int, current bool, bar b
|
||||
prevLine := t.prevLines[i]
|
||||
printBar := func() {
|
||||
if len(t.scrollbar) > 0 && bar != prevLine.bar {
|
||||
t.prevLines[i].bar = bar
|
||||
t.move(line, t.window.Width()-1, true)
|
||||
if bar {
|
||||
t.window.CPrint(tui.ColScrollbar, t.scrollbar)
|
||||
|
Loading…
Reference in New Issue
Block a user