--tmux vs. --height: Last one wins

This commit is contained in:
Junegunn Choi
2024-06-01 19:50:17 +09:00
parent cfdf2f1153
commit e2f93e5a2d
3 changed files with 31 additions and 21 deletions

View File

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