Skip to content
Myr

Do not open tmux or winpty in `--filter` mode

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 144d55a · Browse files · 1 file+7 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−5 removed

  • other:+7 added−5 removed

1 file+7 added−5 removed

modified:src/core.go+7 added-5 removed
36 unmodified lines
37}3839// Run starts fzf40func Run(opts *Options) (int, error) {41 if opts.Filter == nil {41 if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 && opts.Tmux.index >= opts.Height.index {42 return runTmux(os.Args, opts)43 }42 if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 && opts.Tmux.index >= opts.Height.index {43 return runTmux(os.Args, opts)44 }4545 if needWinpty(opts) {46 return runWinpty(os.Args, opts)46 if needWinpty(opts) {47 return runWinpty(os.Args, opts)48 }49 }5051 if err := postProcessOptions(opts); err != nil {52 return ExitError, err
397 unmodified lines