summaryrefslogtreecommitdiff
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-06-01 19:50:17 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-06-01 22:11:15 +0900
commite2f93e5a2dc30f2785916e0b2e7a2ab974d1ff0a (patch)
tree0e1d081b25e5e81948abdfc5b2e39b9f67fe2a49 /src/core.go
parentcfdf2f11537f8e4207b146250a14a4d1aa32b5f5 (diff)
downloadfzf-e2f93e5a2dc30f2785916e0b2e7a2ab974d1ff0a.tar.gz
--tmux vs. --height: Last one wins
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go
index ec25d1d0..0c7abff1 100644
--- a/src/core.go
+++ b/src/core.go
@@ -20,7 +20,7 @@ Matcher -> EvtHeader -> Terminal (update header)
// Run starts fzf
func Run(opts *Options) (int, error) {
- if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 {
+ if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 && opts.Tmux.index >= opts.Height.index {
return runTmux(os.Args, opts)
}