summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-06-01 14:42:23 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-06-01 14:45:54 +0900
commit7c613d0d9bb2b9a6a30d7bc9642c5b89619e140c (patch)
tree71b1a3c736bc906a92e4a89380539b84b4e1d5c8 /src
parentb00d46bc14bfe1b264c1a3104fbbc45cc0a37f8d (diff)
downloadfzf-7c613d0d9bb2b9a6a30d7bc9642c5b89619e140c.tar.gz
Do not disable --height on mintty (because it works)
Diffstat (limited to 'src')
-rw-r--r--src/winpty_windows.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/winpty_windows.go b/src/winpty_windows.go
index 29cd0f90..78020d73 100644
--- a/src/winpty_windows.go
+++ b/src/winpty_windows.go
@@ -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 {