# HG changeset patch # User Kim F. Storm # Date 1100651257 0 # Node ID b2910e1fbe2e5d0e9f7a70bfe4c19bb5de242703 # Parent 6ce4007aba1fbe681e1b67ac44d3e085bf7055dd (erase_phys_cursor): Adjust cursor row visible height. diff -r 6ce4007aba1f -r b2910e1fbe2e src/xdisp.c --- 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. */