m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 14:23:47 -05:00

Fix --no-header-lines-border behavior

It should be different from --header-lines-border=none according to the
man page. It should merge two headers unlike the latter.
This commit is contained in:
Junegunn Choi
2025-07-22 19:16:55 +09:00
parent ead302981c
commit 08027e7a79
2 changed files with 21 additions and 19 deletions

View File

@@ -2924,7 +2924,7 @@ func parseOptions(index *int, opts *Options, allArgs []string) error {
return err
}
case "--no-header-lines-border":
opts.HeaderLinesShape = tui.BorderNone
opts.HeaderLinesShape = tui.BorderUndefined
case "--header-lines-border":
hasArg, arg := optionalNextString()
if opts.HeaderLinesShape, err = parseBorder(arg, !hasArg); err != nil {