visible line, end we already decided to scroll, return -1.
2000-12-20 Gerd Moellmann <gerd@gnu.org>
+ * xdisp.c (try_cursor_movement): If we end on a partially
+ visible line, end we already decided to scroll, return -1.
+
* dispextern.h (ensure_frame_matrix): Add prototype.
* window.c (delete_window, Fsplit_window)
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. */
/* 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;