Skip to content
Myr

Do not disable --height on mintty (because it works)

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 b00d46b · Browse files · 1 file+2 added−5 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+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:src/winpty_windows.go+2 added-5 removed
21 unmodified lines
22 if isMintty345() {23 /*24 See: https://github.com/junegunn/fzf/issues/38092526 "MSYS=enable_pcon" allows fzf to run properly on mintty 3.4.5 or later,27 however `--height` option still doesn't work, and it's going to be ignored.2829 We're not going to worry too much about restoring the original value.26 "MSYS=enable_pcon" allows fzf to run properly on mintty 3.4.5 or later.27 */28 if strings.Contains(os.Getenv("MSYS"), "enable_pcon") {29 return false30 }
21 unmodified lines
52 argStr := escapeSingleQuote(args[0])53 for _, arg := range args[1:] {54 argStr += " " + escapeSingleQuote(arg)55 }59 argStr += ` --no-winpty --no-height`56 argStr += ` --no-winpty`5758 if isMintty345() {59 return runProxy(argStr, func(temp string) *exec.Cmd {60 cmd := exec.Command(sh, temp)
15 unmodified lines