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
Provenance
- Commit
0952b2d- Tree
a1126d1- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
4bedd33
3 files changed+7 added−7 removed
modified:man/man1/fzf.1+1 added-1 removed
532 unmodified lines533 --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"538 Highlight the whole current line539 .TP540 .B "--no-bold"541 Do not use bold text1031 unmodified linesmodified:src/options.go+3 added-3 removed
90 unmodified lines91 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 text97 98 History99 --history=FILE History file1849 unmodified lines1949 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 linesmodified:src/terminal.go+3 added-3 removed
233 unmodified lines234 pressed string235 printQuery bool236 history *History237 cycle bool238- cursorLine bool238+ highlightLine bool239 headerVisible bool240 headerFirst bool241 headerLines int242 header []string517 unmodified lines760 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 lines1919 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