Skip to content

Conversation

@dmaluka
Copy link
Collaborator

@dmaluka dmaluka commented Dec 2, 2024

Fix regression introduced while implementing nano-like page up/down in #3518 (of which mostly I am guilty): if the view is already at the end of the buffer and the last line is even above the bottom, i.e. there are some empty lines displayed below the last line (e.g. if we have scrolled past the last line via the mouse wheel), pressing PageDown not just moves the cursor to the last line but also unexpectedly adjusts the view so that the last line is exactly at the bottom.

@nimishjha FYI.

Fix regression introduced while implementing nano-like page up/down in
commit b2dbcb3: if the view is already at the end of the buffer and
the last line is even above the bottom, i.e. there are some empty
lines displayed below the last line (e.g. if we have scrolled past the
last line via the mouse wheel), pressing PageDown not just moves the
cursor to the last line but also unexpectedly adjusts the view so that
the last line is exactly at the bottom.
@nimishjha
Copy link
Contributor

Oops, my bad. Quite an edge case. Looks good.

@JoeKar JoeKar merged commit 71a2638 into micro-editor:master Dec 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants