# HG changeset patch # User Gerd Moellmann # Date 977321399 0 # Node ID 84f309395a369bd0aac46eeedc7faa127222a1c7 # Parent 51a0fe34dfc61ade5d9d01b2a7deccd9935bd8d7 (try_cursor_movement): If we end on a partially visible line, end we already decided to scroll, return -1. diff -r 51a0fe34dfc6 -r 84f309395a36 src/xdisp.c --- a/src/xdisp.c Wed Dec 20 12:00:57 2000 +0000 +++ b/src/xdisp.c Wed Dec 20 14:09:59 2000 +0000 @@ -9250,7 +9250,6 @@ int scroll_p = 0; int last_y = window_text_bottom_y (w) - this_scroll_margin; - if (PT > XFASTINT (w->last_point)) { /* Point has moved forward. */ @@ -9336,7 +9335,9 @@ /* If we end up in a partially visible line, let's make it fully visible, except when it's taller than the window, in which case we can't do much about it. */ - if (row->height > window_box_height (w)) + if (scroll_p) + rc = -1; + else if (row->height > window_box_height (w)) { *scroll_step = 1; rc = -1;