Skip to content
Myr

Avoid superfluous update of scrollbar

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent aa71a07 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/terminal.go+1 added
1421 unmodified lines
1422 result: result, queryLen: len(t.input), width: 0, bar: bar}1423 prevLine := t.prevLines[i]1424 printBar := func() {1425 if len(t.scrollbar) > 0 && bar != prevLine.bar {1426 t.prevLines[i].bar = bar1427 t.move(line, t.window.Width()-1, true)1428 if bar {1429 t.window.CPrint(tui.ColScrollbar, t.scrollbar)1430 }
1886 unmodified lines