Skip to content
Myr

Fix adaptive height in the presence of --list-border and --input-border

Before adoption: this commit came in with the history the project adopted, so no landing records it.

seq 10 | fzf --height=~100%

authored by Junegunn Choi · committed by Junegunn Choi · parent 8a71e09 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:src/terminal.go+6 added
1065 unmodified lines
10661067// Extra number of lines needed to display fzf1068func (t *Terminal) extraLines() int {1069 extra := t.visibleHeaderLines() + 11070 if t.inputBorderShape.Visible() {1071 extra += borderLines(t.inputBorderShape)1072 }1073 if t.listBorderShape.Visible() {1074 extra += borderLines(t.listBorderShape)1075 }1076 if !t.noSeparatorLine() {1077 extra++1078 }1079 return extra
4518 unmodified lines