Skip to content
Myr

Do not run as winpty proxy if winpty is not available

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 a90426b · Browse files · 1 file+4 added−1 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:src/core.go+4 added-1 removed
1 unmodified line
2package fzf34import (5 "os"6 "os/exec"7 "sync"8 "time"910 "github.com/junegunn/fzf/src/util"
14 unmodified lines
25 return runTmux(os.Args, opts)26 }2728 if os.Getenv("TERM_PROGRAM") == "mintty" && !opts.NoWinpty {29 if _, err := exec.LookPath("winpty"); err == nil {28 return runWinpty(os.Args, opts)30 return runWinpty(os.Args, opts)31 }32 }3334 if err := postProcessOptions(opts); err != nil {35 return ExitError, err
389 unmodified lines