Add support for negative --height

fzf --height=-1

Close #3487
This commit is contained in:
Junegunn Choi committed 2023-12-21 18:42:23 +09:00
1 parent 87fc1c84b8
commit d7b61ede07
5 files changed
+44 -9

No files matched your search

+1 -1
View File
@@ -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()