changeset 44780:f1518f00a132

(notice_overwritten_cursor): Handle the special case of the cursor being in the first blank non-text line at the end of a window.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 23 Apr 2002 15:44:28 +0000
parents 5ce5dc5a11f3
children d8f751ff03f3
files src/xterm.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Apr 23 15:16:54 2002 +0000
+++ b/src/xterm.c	Tue Apr 23 15:44:28 2002 +0000
@@ -11243,9 +11243,14 @@
 	     actually scrolling, so we don't come here.  When not
 	     scrolling, the rows above the old cursor row must have
 	     changed, and in this case these rows must have written
-	     over the cursor image.  Likewise if part of the cursor is
-	     below y1.  */
-	  if ((y0 >= cy0 && y0 < cy1) || (y1 >= cy0 && y1 < cy1))
+	     over the cursor image.
+
+	     Likewise if part of the cursor is below y1, with the
+	     exception of the cursor being in the first blank row at
+	     the buffer and window end because update_text_area
+	     doesn't draw that row.  */
+	  if (((y0 >= cy0 && y0 < cy1) || (y1 >= cy0 && y1 < cy1))
+	      && w->current_matrix->rows[w->phys_cursor.vpos].displays_text_p)
 	    w->phys_cursor_on_p = 0;
 	}
     }