mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-24 21:57:36 +00:00
Remove unused field
This commit is contained in:
parent
368294edf6
commit
590060a16b
@ -160,7 +160,6 @@ type itemLine struct {
|
|||||||
result Result
|
result Result
|
||||||
empty bool
|
empty bool
|
||||||
other bool
|
other bool
|
||||||
minIndex int32
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Terminal) markEmptyLine(line int) {
|
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
|
// Avoid unnecessary redraw
|
||||||
newLine := itemLine{firstLine: line, cy: index + t.offset, current: current, selected: selected, label: label,
|
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]
|
prevLine := t.prevLines[line]
|
||||||
forceRedraw := prevLine.other || prevLine.firstLine != newLine.firstLine
|
forceRedraw := prevLine.other || prevLine.firstLine != newLine.firstLine
|
||||||
printBar := func(lineNum int, forceRedraw bool) bool {
|
printBar := func(lineNum int, forceRedraw bool) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user