Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pixel-scroll-precision-mode when point is on a blank line #1926

Merged
merged 1 commit into from
Aug 10, 2024

Commits on Jul 28, 2024

  1. Fix pixel-scroll-precision-mode when point is on a blank line

    When in the point is on a blank line in normal state, scrolling down
    with `pixel-scroll-precision-mode` enabled "sticks" because Evil ends up
    invoking `line-move` in the `post-command-hook`. `line-move` resets
    vscroll to 0, which undoes the scroll if we scrolled less than a line.
    
    Specifically, `evil-normal-post-command` calls `evil-adjust-cursor`
    which calls `evil-move-end-of-line` which calls `move-end-of-line`,
    which finally calls `line-move`.
    
    This change avoids this issue by removing the call to `evil-move-end-of-line`
    entirely, instead relying on the `bolp` call in `evil-move-cursor-back`.
    Stebalien committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    ffefdac View commit details
    Browse the repository at this point in the history