From 902f343c18e1894cd5a0e702151fa457651fe0b1 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 23 Dec 2021 19:00:30 +0800 Subject: [PATCH] Set start to desired start when pixel scrolling to end of buffer * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down-page): Set start to desired start when point cannot be moved further down. --- lisp/pixel-scroll.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el index 4aae166f2e0..223bc7fbc47 100644 --- a/lisp/pixel-scroll.el +++ b/lisp/pixel-scroll.el @@ -459,6 +459,7 @@ the height of the current window." (next-pos (save-excursion (goto-char desired-start) (when (zerop (vertical-motion (1+ scroll-margin))) + (set-window-start nil desired-start) (signal 'end-of-buffer nil)) (point))) (scroll-preserve-screen-position nil) -- 2.39.2