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

This commit is contained in:
Junegunn Choi 2024-06-01 14:42:23 +09:00
parent b00d46bc14
commit 7c613d0d9b
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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 {