summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-12-21 18:41:01 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-12-21 18:42:23 +0900
commitd7b61ede07ab20ba106191968f12aaf600b6ede4 (patch)
treef86613d7e0ef3ec06aa44890d81bd5ab991e6b67 /src/core.go
parent87fc1c84b8700e694ec341b36ac3ce29a7a30e6b (diff)
Add support for negative --height
fzf --height=-1 Close #3487
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go
index e21e8c0a..ed56a879 100644
--- a/src/core.go
+++ b/src/core.go
@@ -200,7 +200,7 @@ func Run(opts *Options, version string, revision string) {
padHeight := 0
heightUnknown := opts.Height.auto
if heightUnknown {
- maxFit, padHeight = terminal.MaxFitAndPad(opts)
+ maxFit, padHeight = terminal.MaxFitAndPad()
}
deferred := opts.Select1 || opts.Exit0
go terminal.Loop()