# HG changeset patch # User Chong Yidong # Date 1225085542 0 # Node ID 205d4e040316b6f241ba6e5e2b8422809967c827 # Parent d03ac65823d18b2178a50c7eebd4f2923fde6e39 Reverse last change. diff -r d03ac65823d1 -r 205d4e040316 src/xdisp.c --- a/src/xdisp.c Mon Oct 27 05:15:37 2008 +0000 +++ b/src/xdisp.c Mon Oct 27 05:32:22 2008 +0000 @@ -12687,7 +12687,8 @@ window, or below. Compute the distance from the scroll margin to PT, and give up if the distance is greater than scroll_max. */ - move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); + move_it_to (&it, PT, -1, it.last_visible_y - 1, -1, + MOVE_TO_POS | MOVE_TO_Y); /* To make point visible, we must move the window start down so that the cursor line is visible, which means we have