changeset 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 6ce4007aba1f
children 1a8c950076bd
files src/xdisp.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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.  */