mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 06:07:42 +00:00
Do not open tmux or winpty in --filter
mode
This commit is contained in:
parent
144d55a5be
commit
a1a72bb8d1
@ -38,6 +38,7 @@ func (r revision) compatible(other revision) bool {
|
||||
|
||||
// Run starts fzf
|
||||
func Run(opts *Options) (int, error) {
|
||||
if opts.Filter == nil {
|
||||
if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 && opts.Tmux.index >= opts.Height.index {
|
||||
return runTmux(os.Args, opts)
|
||||
}
|
||||
@ -45,6 +46,7 @@ func Run(opts *Options) (int, error) {
|
||||
if needWinpty(opts) {
|
||||
return runWinpty(os.Args, opts)
|
||||
}
|
||||
}
|
||||
|
||||
if err := postProcessOptions(opts); err != nil {
|
||||
return ExitError, err
|
||||
|
Loading…
Reference in New Issue
Block a user