Fix adaptive height with an inline header or footer border
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- extraLines() used borderLines(), which reports zero for BorderInline - Divider drawn for an inline section still takes a line, and resizeWindows() reserves it via addInline() - So adaptive height came up one line short per inline section and the list scrolled - Affects --header-lines-border, --header-border and --footer-border alike. All three set came up three lines short - Without a list border the shape normalizes to BorderTop or BorderBottom, which report a line, hence --no-list-border looked like a fix seq 10 | fzf --height=~100% --list-border \ --header-lines=1 --header-lines-border=inline Fix #4904
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+35 added−3 removed
- tests:+22 added−0 removed
- other:+13 added−3 removed