mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Fix --layout reverse-list --no-input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user