aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-03 16:41:48 +0000
committerRichard M. Stallman2005-07-03 16:41:48 +0000
commit7ad532392bbea95055f32eb73740fef4992d8c8c (patch)
treeef6a1def4275d9049ff5a185f946f1a3991c569c /src
parent99f71598ea9e68f36306c49e1de1f2213846aaf1 (diff)
downloademacs-7ad532392bbea95055f32eb73740fef4992d8c8c.tar.gz
emacs-7ad532392bbea95055f32eb73740fef4992d8c8c.zip
(window_scroll_pixel_based): Take account of this_scroll_margin when
finding point when scrolling up.
Diffstat (limited to 'src')
-rw-r--r--src/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 5aa036ec810..3d8fa95f2fe 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4822,7 +4822,9 @@ window_scroll_pixel_based (window, n, whole, noerror)
4822 /* We moved the window start towards BEGV, so PT may be now 4822 /* We moved the window start towards BEGV, so PT may be now
4823 in the scroll margin at the bottom. */ 4823 in the scroll margin at the bottom. */
4824 move_it_to (&it, PT, -1, 4824 move_it_to (&it, PT, -1,
4825 it.last_visible_y - this_scroll_margin - 1, -1, 4825 (it.last_visible_y - CURRENT_HEADER_LINE_HEIGHT (w)
4826 - this_scroll_margin - 1),
4827 -1,
4826 MOVE_TO_POS | MOVE_TO_Y); 4828 MOVE_TO_POS | MOVE_TO_Y);
4827 4829
4828 /* Save our position, in case it's correct. */ 4830 /* Save our position, in case it's correct. */