From 78e7b91f176535ca99647555a519652d4f289b44 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 17 Nov 2004 00:27:37 +0000 Subject: [PATCH] (erase_phys_cursor): Adjust cursor row visible height. --- src/xdisp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 2620485bbe3..2a9f3b6cd14 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -20068,6 +20068,11 @@ erase_phys_cursor (w) 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. */ -- 2.39.2