You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Usability issue: unpredictable screen layout and cursor position when paging #124
changed the title [-]Usability issue: unpredicatable screen layout and cursor position when paging[/-][+]Usability issue: unpredictable screen layout and cursor position when paging[/+]on Apr 19, 2026
fixed in #125, will ship in the next release. pgdown/pgup now preserve the cursor's on-screen row, same as ctrl-d/ctrl-u.
also fixed a related edge case found in review: paging from a line with an annotation no longer leaves the cursor off-screen (the helper loop used to exit early on the cursorOnAnnotation flip and scroll the viewport anyway).
Activity
nborodikhin commentedon Apr 19, 2026
There are two common strategies to handle cursor position while paging that I see often:
revdiffdoes neither:[-]Usability issue: unpredicatable screen layout and cursor position when paging[/-][+]Usability issue: unpredictable screen layout and cursor position when paging[/+]fix(ui): keep cursor on same screen row when paging
fix(ui): keep cursor visible when paging on annotated lines
test(ui): add wrap-mode subtest for PgDown/PgUp cursor row invariant
fix(ui): keep cursor on same screen row when paging (#125)
umputun commentedon Apr 19, 2026
fixed in #125, will ship in the next release. pgdown/pgup now preserve the cursor's on-screen row, same as ctrl-d/ctrl-u.
also fixed a related edge case found in review: paging from a line with an annotation no longer leaves the cursor off-screen (the helper loop used to exit early on the cursorOnAnnotation flip and scroll the viewport anyway).