changeset 59715:67ba31b1d2cc

(redisplay_window): Only try to make cursor line fully visible once (to avoid redisplay loop).
author Kim F. Storm <storm@cua.dk>
date Mon, 24 Jan 2005 13:17:51 +0000
parents 358f1c5da448
children 00046b439a5e
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Jan 24 13:17:37 2005 +0000
+++ b/src/xdisp.c	Mon Jan 24 13:17:51 2005 +0000
@@ -12231,6 +12231,8 @@
       /* 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;