Skip to content
Myr

Address review comments by @Konfekt

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

https://github.com/junegunn/fzf/commit/d4216b0dcc13567479d81cc5ad2adedb1443ea8b

authored by Junegunn Choi · committed by Junegunn Choi · parent 3dee877 · Browse files · 1 file+4 added−3 removed
This commit

State

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

Trailers

  • https: //github.com/junegunn/fzf/commit/d4216b0dcc13567479d81cc5ad2adedb1443ea8b

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:src/winpty_windows.go+4 added-3 removed
4 unmodified lines
5import (6 "fmt"7 "os"8 "os/exec"9 "strings"1011 "github.com/junegunn/fzf/src/util"12)13
13 unmodified lines
27 however `--height` option still doesn't work, so let's just disable it.2829 We're not going to worry too much about restoring the original value.30 */30 if os.Getenv("MSYS") == "enable_pcon" {31 if strings.Contains(os.Getenv("MSYS"), "enable_pcon") {32 opts.Height = heightSpec{}33 return false34 }35
1 unmodified line
37 // so we need to start a child process with "MSYS=enable_pcon"38 // os.Setenv("MSYS", "enable_pcon")39 return true40 }40 if _, err := exec.LookPath("winpty"); err != nil {41 if opts.NoWinpty {42 return false43 }43 if opts.NoWinpty {44 if _, err := exec.LookPath("winpty"); err != nil {45 return false46 }47 return true48}
31 unmodified lines