Fix --layout reverse-list --no-input
Some checks are pending
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run

This commit is contained in:
Junegunn Choi
2025-02-01 09:28:02 +09:00
parent 6c0ca4a64a
commit d075c00015
2 changed files with 21 additions and 3 deletions

View File

@@ -2184,9 +2184,12 @@ func (t *Terminal) move(y int, x int, clear bool) {
case layoutDefault:
y = h - y - 1
case layoutReverseList:
n := 2 + t.visibleHeaderLinesInList()
if t.noSeparatorLine() {
n--
n := t.visibleHeaderLinesInList()
if !t.inputless {
n++
}
if !t.noSeparatorLine() {
n++
}
if y < n {
y = h - y - 1