Skip to content
Myr

Rename --cursor-line to --highlight-line

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 4bedd33 · Browse files · 3 files+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−7 removed

  • other:+7 added−7 removed

3 files+7 added−7 removed

modified:man/man1/fzf.1+1 added-1 removed
532 unmodified lines
533 --color='hl:#719872,fg:#D9D9D9,header:#719872,fg+:#D9D9D9' \\534 --color='pointer:#E12672,marker:#E17899,prompt:#98BEDE,hl+:#98BC99'\fR535.RE536.TP537.B "--cursor-line"537.B "--highlight-line"538Highlight the whole current line539.TP540.B "--no-bold"541Do not use bold text
1031 unmodified lines
modified:src/options.go+3 added-3 removed
90 unmodified lines
91 Display92 --ansi Enable processing of ANSI color codes93 --tabstop=SPACES Number of spaces for a tab character (default: 8)94 --color=COLSPEC Base scheme (dark|light|16|bw) and/or custom colors95 --cursor-line Highlight the whole current line95 --highlight-line Highlight the whole current line96 --no-bold Do not use bold text9798 History99 --history=FILE History file
1849 unmodified lines
1949 case "--no-reverse":1950 opts.Layout = layoutDefault1951 case "--cycle":1952 opts.Cycle = true1953 case "--cursor-line":1953 case "--highlight-line":1954 opts.CursorLine = true1955 case "--no-cursor-line":1955 case "--no-highlight-line":1956 opts.CursorLine = false1957 case "--no-cycle":1958 opts.Cycle = false1959 case "--keep-right":
675 unmodified lines
modified:src/terminal.go+3 added-3 removed
233 unmodified lines
234 pressed string235 printQuery bool236 history *History237 cycle bool238 cursorLine bool238 highlightLine bool239 headerVisible bool240 headerFirst bool241 headerLines int242 header []string
517 unmodified lines
760 cleanExit: opts.ClearOnExit,761 executor: executor,762 paused: opts.Phony,763 cycle: opts.Cycle,764 cursorLine: opts.CursorLine,764 highlightLine: opts.CursorLine,765 headerVisible: true,766 headerFirst: opts.HeaderFirst,767 headerLines: opts.HeaderLines,768 header: []string{},
1150 unmodified lines
1919 t.window.Print(t.markerEmpty)1920 }1921 newLine.width = t.printHighlighted(result, tui.ColNormal, tui.ColMatch, false, true)1922 }1923 if current && t.cursorLine {1923 if current && t.highlightLine {1924 maxWidth := t.window.Width() - (t.pointerLen + t.markerLen + 1)1925 fillSpaces := maxWidth - newLine.width1926 newLine.width = maxWidth1927 if fillSpaces > 0 {
2474 unmodified lines