mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-09 15:20:56 +00:00
Do not disable --height on mintty (because it works)
This commit is contained in:
parent
b00d46bc14
commit
7c613d0d9b
@ -23,10 +23,7 @@ func needWinpty(opts *Options) bool {
|
||||
/*
|
||||
See: https://github.com/junegunn/fzf/issues/3809
|
||||
|
||||
"MSYS=enable_pcon" allows fzf to run properly on mintty 3.4.5 or later,
|
||||
however `--height` option still doesn't work, and it's going to be ignored.
|
||||
|
||||
We're not going to worry too much about restoring the original value.
|
||||
"MSYS=enable_pcon" allows fzf to run properly on mintty 3.4.5 or later.
|
||||
*/
|
||||
if strings.Contains(os.Getenv("MSYS"), "enable_pcon") {
|
||||
return false
|
||||
@ -56,7 +53,7 @@ func runWinpty(args []string, opts *Options) (int, error) {
|
||||
for _, arg := range args[1:] {
|
||||
argStr += " " + escapeSingleQuote(arg)
|
||||
}
|
||||
argStr += ` --no-winpty --no-height`
|
||||
argStr += ` --no-winpty`
|
||||
|
||||
if isMintty345() {
|
||||
return runProxy(argStr, func(temp string) *exec.Cmd {
|
||||
|
Loading…
Reference in New Issue
Block a user