summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-06-07 16:58:56 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-06-07 16:59:09 +0900
commit368294edf6761fdce0d2645356699271da1a9eee (patch)
tree02bbc828a0aa56d40ffe8c16e302427778e22673 /src
parentc4a9ccd6afc3698a57a6b938ebba6d85238033e2 (diff)
downloadfzf-368294edf6761fdce0d2645356699271da1a9eee.tar.gz
Reduce flickering of the list when the list is truncated by --tail
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 386e0850..4797b751 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -1982,7 +1982,7 @@ func (t *Terminal) printItem(result Result, line int, maxLine int, index int, cu
newLine := itemLine{firstLine: line, cy: index + t.offset, current: current, selected: selected, label: label,
result: result, queryLen: len(t.input), width: 0, hasBar: line >= barRange[0] && line < barRange[1], minIndex: t.merger.minIndex}
prevLine := t.prevLines[line]
- forceRedraw := prevLine.other || prevLine.firstLine != newLine.firstLine || prevLine.minIndex != t.merger.minIndex
+ forceRedraw := prevLine.other || prevLine.firstLine != newLine.firstLine
printBar := func(lineNum int, forceRedraw bool) bool {
return t.printBar(lineNum, forceRedraw, barRange)
}