diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-04 19:19:18 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-04 19:19:18 +0900 |
| commit | 8e4d338de9e0d3b81eb01b016ac0f7dcdf8efb2b (patch) | |
| tree | 02cb5e52ce72b0e0781917bcfdcc568952f739c8 /src | |
| parent | 8a71e091a81c5d46770a261f84f8d5674fe73e6e (diff) | |
| download | fzf-8e4d338de9e0d3b81eb01b016ac0f7dcdf8efb2b.tar.gz | |
Fix adaptive height in the presence of --list-border and --input-border
seq 10 | fzf --height=~100%
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index fd5efa28..93608eab 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1067,6 +1067,12 @@ func (t *Terminal) visibleHeaderLines() int { // Extra number of lines needed to display fzf func (t *Terminal) extraLines() int { extra := t.visibleHeaderLines() + 1 + if t.inputBorderShape.Visible() { + extra += borderLines(t.inputBorderShape) + } + if t.listBorderShape.Visible() { + extra += borderLines(t.listBorderShape) + } if !t.noSeparatorLine() { extra++ } |
