From 8a71e091a81c5d46770a261f84f8d5674fe73e6e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 4 Jan 2025 18:47:00 +0900 Subject: Fix '--tmux border-native' --- src/options.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/options.go b/src/options.go index a3096d11..b21396a5 100644 --- a/src/options.go +++ b/src/options.go @@ -331,7 +331,12 @@ func parseTmuxOptions(arg string, index int) (*tmuxOptions, error) { } // Defaults to 'center' - switch tokens[0] { + first := "center" + if len(tokens) > 0 { + first = tokens[0] + } + + switch first { case "top", "up": opts.position = posUp opts.width = sizeSpec{100, true} -- cgit v1.2.3