Allow setting border styles at once with --style full:STYLE

This commit is contained in:
Junegunn Choi
2025-01-17 12:51:51 +09:00
parent 1313510890
commit 0d5aebb806
5 changed files with 51 additions and 15 deletions

View File

@@ -12,7 +12,9 @@ func runTmux(args []string, opts *Options) (int, error) {
fzf, rest := args[0], args[1:]
args = []string{"--bind=ctrl-z:ignore"}
if !opts.Tmux.border && opts.BorderShape == tui.BorderUndefined {
args = append(args, "--border")
// We append --border option at the end, because `--style=full:STYLE`
// may have changed the default border style.
rest = append(rest, "--border")
}
if opts.Tmux.border && opts.Margin == defaultMargin() {
args = append(args, "--margin=0,1")