mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29: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 {
|
if a.t == actOffsetDown {
|
||||||
diff = -1
|
diff = -1
|
||||||
}
|
}
|
||||||
|
if t.layout == layoutReverse {
|
||||||
|
diff *= -1
|
||||||
|
}
|
||||||
t.offset += diff
|
t.offset += diff
|
||||||
before := t.offset
|
before := t.offset
|
||||||
t.constrain()
|
t.constrain()
|
||||||
if before != t.offset {
|
if before != t.offset {
|
||||||
t.offset = before
|
t.offset = before
|
||||||
|
if t.layout == layoutReverse {
|
||||||
|
diff *= -1
|
||||||
|
}
|
||||||
t.vmove(diff, false)
|
t.vmove(diff, false)
|
||||||
}
|
}
|
||||||
req(reqList)
|
req(reqList)
|
||||||
|
Loading…
Reference in New Issue
Block a user