Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`.
- Loading branch information