mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 03:19:01 +00:00
Fix offset-up and offset-down with --layout=reverse (#3456)
This commit is contained in:
parent
a8f9432a3a
commit
3df06a1c68
@ -3411,11 +3411,17 @@ func (t *Terminal) Loop() {
|
||||
if a.t == actOffsetDown {
|
||||
diff = -1
|
||||
}
|
||||
if t.layout == layoutReverse {
|
||||
diff *= -1
|
||||
}
|
||||
t.offset += diff
|
||||
before := t.offset
|
||||
t.constrain()
|
||||
if before != t.offset {
|
||||
t.offset = before
|
||||
if t.layout == layoutReverse {
|
||||
diff *= -1
|
||||
}
|
||||
t.vmove(diff, false)
|
||||
}
|
||||
req(reqList)
|
||||
|
Loading…
Reference in New Issue
Block a user