Fix offset-up and offset-down with --layout=reverse (#3456)

pull/3476/head
Junegunn Choi 7 months ago
parent a8f9432a3a
commit 3df06a1c68
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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…
Cancel
Save