diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-04 18:47:00 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-04 18:47:00 +0900 |
| commit | 8a71e091a81c5d46770a261f84f8d5674fe73e6e (patch) | |
| tree | c30816ae291640c4745b7278cdea9c7012e3f38c /src | |
| parent | 120cd7f25a8209297f15b0a79b36c44b30e641fb (diff) | |
| download | fzf-8a71e091a81c5d46770a261f84f8d5674fe73e6e.tar.gz | |
Fix '--tmux border-native'
Diffstat (limited to 'src')
| -rw-r--r-- | src/options.go | 7 |
1 files changed, 6 insertions, 1 deletions
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} |
