summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-06-07 17:05:33 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-06-07 17:05:33 +0900
commit590060a16b85270c19c605e8758cda16c4517086 (patch)
tree8cedc458cfbe971a6b959e6c39ed2ccc99f1bbc6 /src
parent368294edf6761fdce0d2645356699271da1a9eee (diff)
downloadfzf-590060a16b85270c19c605e8758cda16c4517086.tar.gz
Remove unused field
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 4797b751..954d0296 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -160,7 +160,6 @@ type itemLine struct {
result Result
empty bool
other bool
- minIndex int32
}
func (t *Terminal) markEmptyLine(line int) {
@@ -1980,7 +1979,7 @@ func (t *Terminal) printItem(result Result, line int, maxLine int, index int, cu
// Avoid unnecessary redraw
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}
+ result: result, queryLen: len(t.input), width: 0, hasBar: line >= barRange[0] && line < barRange[1]}
prevLine := t.prevLines[line]
forceRedraw := prevLine.other || prevLine.firstLine != newLine.firstLine
printBar := func(lineNum int, forceRedraw bool) bool {