visible once (to avoid redisplay loop).
2005-01-24 Kim F. Storm <storm@cua.dk>
+ * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
+ direction if window height was smaller than next-screen-context-lines.
+ Now always scroll at least one line in the requested direction.
+ Ensure that we actually do scroll backwards when requested to do so.
+
* xdisp.c (redisplay_window): Only try to make cursor line fully
visible once (to avoid redisplay loop).
/* If centering point failed to make the whole line visible,
put point at the top instead. That has to make the whole line
visible, if it can be done. */
+ if (centering_position == 0)
+ goto done;
clear_glyph_matrix (w->desired_matrix);
centering_position = 0;
goto point_at_top;