Commit 3f7e3031 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(try_cursor_movement): If we end on a partially

visible line, end we already decided to scroll, return -1.
parent c9f00270
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)
......
......@@ -9250,7 +9250,6 @@ try_cursor_movement (window, startp, scroll_step)
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 @@ try_cursor_movement (window, startp, scroll_step)
/* 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;
......
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