summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-01-02 01:10:01 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-01-02 01:10:01 +0900
commit3761dc0433edc32ea890ac57c383ea2dfda32b1b (patch)
tree896ea80f64b5e11fd3cdb554cfea428174de51ec /src
parentaa71a07fbe8fb3280f7661404a00d815f5b43a28 (diff)
downloadfzf-3761dc0433edc32ea890ac57c383ea2dfda32b1b.tar.gz
Avoid superfluous update of scrollbar
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 445a66ea..129ae946 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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)