]> git.eshelyaron.com Git - emacs.git/commitdiff
Set start to desired start when pixel scrolling to end of buffer
authorPo Lu <luangruo@yahoo.com>
Thu, 23 Dec 2021 11:00:30 +0000 (19:00 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 23 Dec 2021 11:00:30 +0000 (19:00 +0800)
* 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

index 4aae166f2e064c393b59b018832d3d5374b640f7..223bc7fbc4739d7eba61d357960a007514e0670a 100644 (file)
@@ -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)