Fix '--tmux border-native'

This commit is contained in:
Junegunn Choi
2025-01-04 18:47:00 +09:00
parent 120cd7f25a
commit 8a71e091a8
2 changed files with 11 additions and 2 deletions

View File

@@ -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}