mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-18 05:53:49 -07:00
Rename --cursor-line to --highlight-line
This commit is contained in:
@@ -235,7 +235,7 @@ type Terminal struct {
|
||||
printQuery bool
|
||||
history *History
|
||||
cycle bool
|
||||
cursorLine bool
|
||||
highlightLine bool
|
||||
headerVisible bool
|
||||
headerFirst bool
|
||||
headerLines int
|
||||
@@ -761,7 +761,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox, executor *util.Executor
|
||||
executor: executor,
|
||||
paused: opts.Phony,
|
||||
cycle: opts.Cycle,
|
||||
cursorLine: opts.CursorLine,
|
||||
highlightLine: opts.CursorLine,
|
||||
headerVisible: true,
|
||||
headerFirst: opts.HeaderFirst,
|
||||
headerLines: opts.HeaderLines,
|
||||
@@ -1920,7 +1920,7 @@ func (t *Terminal) printItem(result Result, line int, i int, current bool, bar b
|
||||
}
|
||||
newLine.width = t.printHighlighted(result, tui.ColNormal, tui.ColMatch, false, true)
|
||||
}
|
||||
if current && t.cursorLine {
|
||||
if current && t.highlightLine {
|
||||
maxWidth := t.window.Width() - (t.pointerLen + t.markerLen + 1)
|
||||
fillSpaces := maxWidth - newLine.width
|
||||
newLine.width = maxWidth
|
||||
|
Reference in New Issue
Block a user