summaryrefslogtreecommitdiff
path: root/src/winpty_windows.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-06-01 14:13:24 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-06-01 14:35:45 +0900
commit555b0d235bd29ace645c263ef2fdb744717f8885 (patch)
treed93868b5e180a2c96bbdfe22648474e47d9a2465 /src/winpty_windows.go
parent564daf9a7d2f8ad5ed67d7e24191e263ee17633d (diff)
downloadfzf-555b0d235bd29ace645c263ef2fdb744717f8885.tar.gz
Ignore --height option if it's not supported on the platform
This is to make shell integration work out of the box on Git bash. eval "$(fzf --bash)" vim <CTRL-T> # would print '--height option is currently not supported on this platform'
Diffstat (limited to 'src/winpty_windows.go')
-rw-r--r--src/winpty_windows.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/winpty_windows.go b/src/winpty_windows.go
index a9e56bbd..29cd0f90 100644
--- a/src/winpty_windows.go
+++ b/src/winpty_windows.go
@@ -24,12 +24,11 @@ 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, so let's just disable it.
+ 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.
*/
if strings.Contains(os.Getenv("MSYS"), "enable_pcon") {
- opts.Height = heightSpec{}
return false
}