diff src/xdisp.c @ 58290:b2910e1fbe2e

(erase_phys_cursor): Adjust cursor row visible height.
author Kim F. Storm <storm@cua.dk>
date Wed, 17 Nov 2004 00:27:37 +0000
parents eb96fac40fc7
children 1a8c950076bd
line wrap: on
line diff
--- a/src/xdisp.c	Wed Nov 17 00:27:20 2004 +0000
+++ b/src/xdisp.c	Wed Nov 17 00:27:37 2004 +0000
@@ -20068,6 +20068,11 @@
   if (!cursor_row->enabled_p)
     goto mark_cursor_off;
 
+  /* If line spacing is > 0, old cursor may only be partially visible in
+     window after split-window.  So adjust visible height.  */
+  cursor_row->visible_height = min (cursor_row->visible_height,
+				    window_text_bottom_y (w) - cursor_row->y);
+
   /* If row is completely invisible, don't attempt to delete a cursor which
      isn't there.  This can happen if cursor is at top of a window, and
      we switch to a buffer with a header line in that window.  */