Commit 7ad53239 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(window_scroll_pixel_based): Take account of this_scroll_margin when

finding point when scrolling up.
parent 99f71598
......@@ -4822,7 +4822,9 @@ window_scroll_pixel_based (window, n, whole, noerror)
/* We moved the window start towards BEGV, so PT may be now
in the scroll margin at the bottom. */
move_it_to (&it, PT, -1,
it.last_visible_y - this_scroll_margin - 1, -1,
(it.last_visible_y - CURRENT_HEADER_LINE_HEIGHT (w)
- this_scroll_margin - 1),
-1,
MOVE_TO_POS | MOVE_TO_Y);
/* Save our position, in case it's correct. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment