Skip to content
Myr

Empty --marker-multi-line if --marker is empty

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 3b944ad · Browse files · 2 files+3 added−8 removed
This commit

State

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

Diff stats

2 files+3 added−8 removed

  • other:+3 added−8 removed

2 files+3 added−8 removed

modified:src/options.go+2 added-3 removed
2786 unmodified lines
2787 }2788 opts.Pointer = &defaultPointer2789 }27902791 multiLine := opts.MultiLine && opts.ReadZero2791 markerLen := 12792 if opts.Marker == nil {2794 if multiLine && opts.MarkerMulti != nil && opts.MarkerMulti[0] == "" {2793 if opts.MarkerMulti != nil && opts.MarkerMulti[0] == "" {2794 empty := ""2795 opts.Marker = &empty2796 markerLen = 02797 } else {
9 unmodified lines
2807 }28082809 markerMultiLen := 12810 if opts.MarkerMulti == nil {2812 if !multiLine && *opts.Marker == "" {2811 if *opts.Marker == "" {2812 opts.MarkerMulti = &[3]string{}2813 markerMultiLen = 02814 } else if opts.Unicode {2815 opts.MarkerMulti = &[3]string{"╻", "┃", "╹"}
165 unmodified lines
modified:CHANGELOG.md+1 added-5 removed
21 unmodified lines
22 - ANSI color codes are supported23- Pointer and marker signs can be set to empty strings24 ```sh25 # Minimal style26 fzf --pointer '' --marker '' --info hidden2728 # When --read0 is specified, there can be multi-line entries,29 # so you need to set --marker-multi-line to an empty string30 find . -print0 | fzf --read0 --pointer '' --marker-multi-line '' --info hidden26 fzf --pointer '' --marker '' --prompt '' --info hidden27 ```28- Better cache management and improved rendering for `--tail`29- Improved `--sync` behavior30 - When `--sync` is provided, fzf will not render the interface until the initial filtering and the associated actions (bound to any of `start`, `load`, `result`, or `focus`) are complete.
2173 unmodified lines