Skip to content
Myr

Fix offset-up and offset-down with --layout=reverse-list

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent d19ce0a · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Related: 3df06a1c68b7dcaf54bb455489498440836f363e

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/terminal.go+2 added-2 removed
6337 unmodified lines
6338 diff := 16339 if a.t == actOffsetDown {6340 diff = -16341 }6342 if t.layout == layoutReverse {6342 if t.layout != layoutDefault {6343 diff *= -16344 }6345 t.offset += diff6346 before := t.offset6347 t.constrain()6348 if before != t.offset {6349 t.offset = before6350 if t.layout == layoutReverse {6350 if t.layout != layoutDefault {6351 diff *= -16352 }6353 t.vmove(diff, false)6354 }
909 unmodified lines