m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 23:33:39 -05:00

Add support for negative --height

fzf --height=-1

Close #3487
This commit is contained in:
Junegunn Choi
2023-12-21 18:41:01 +09:00
parent 87fc1c84b8
commit d7b61ede07
5 changed files with 44 additions and 9 deletions

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()