mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 04:45:14 +00:00
Do not run as winpty proxy if winpty is not available
This commit is contained in:
parent
a90426b7ca
commit
b5b0d6b3ea
@ -3,6 +3,7 @@ package fzf
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@ -25,7 +26,9 @@ func Run(opts *Options) (int, error) {
|
||||
}
|
||||
|
||||
if os.Getenv("TERM_PROGRAM") == "mintty" && !opts.NoWinpty {
|
||||
return runWinpty(os.Args, opts)
|
||||
if _, err := exec.LookPath("winpty"); err == nil {
|
||||
return runWinpty(os.Args, opts)
|
||||
}
|
||||
}
|
||||
|
||||
if err := postProcessOptions(opts); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user