Avoid superfluous update of scrollbar

pull/3110/head
Junegunn Choi 1 year ago
parent aa71a07fbe
commit 3761dc0433
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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…
Cancel
Save