Add test case
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled

This commit is contained in:
Junegunn Choi
2025-06-11 21:35:34 +09:00
parent 1d9bba53ad
commit 8f0bbb98b9
2 changed files with 31 additions and 1 deletions

View File

@@ -2887,7 +2887,13 @@ func parseOptions(index *int, opts *Options, allArgs []string) error {
return err
}
if opts.ListBorderShape == tui.BorderLine {
return errors.New("list border cannot be 'line'")
if hasArg {
// '--list-border line' is not allowed
return errors.New("list border cannot be 'line'")
}
// This is when '--style full:line' is previously specified and
// '--list-border' is specified without an argument.
opts.ListBorderShape = tui.BorderRounded
}
case "--no-list-border":
opts.ListBorderShape = tui.BorderNone