mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-15 20:23:50 -07:00
--tmux vs. --height: Last one wins
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user