m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 06:43:47 -05:00

Fix adaptive height with --header-border

This commit is contained in:
Junegunn Choi
2025-01-07 19:16:16 +09:00
parent a30181e240
commit 9c2f6cae88
2 changed files with 19 additions and 0 deletions

View File

@@ -1093,6 +1093,9 @@ func (t *Terminal) extraLines() int {
if t.listBorderShape.Visible() {
extra += borderLines(t.listBorderShape)
}
if t.headerBorderShape.Visible() {
extra += borderLines(t.headerBorderShape)
}
if !t.noSeparatorLine() {
extra++
}