diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
| 20068 | if (!cursor_row->enabled_p) | 20068 | if (!cursor_row->enabled_p) |
| 20069 | goto mark_cursor_off; | 20069 | goto mark_cursor_off; |
| 20070 | 20070 | ||
| 20071 | /* If line spacing is > 0, old cursor may only be partially visible in | ||
| 20072 | window after split-window. So adjust visible height. */ | ||
| 20073 | cursor_row->visible_height = min (cursor_row->visible_height, | ||
| 20074 | window_text_bottom_y (w) - cursor_row->y); | ||
| 20075 | |||
| 20071 | /* If row is completely invisible, don't attempt to delete a cursor which | 20076 | /* If row is completely invisible, don't attempt to delete a cursor which |
| 20072 | isn't there. This can happen if cursor is at top of a window, and | 20077 | isn't there. This can happen if cursor is at top of a window, and |
| 20073 | we switch to a buffer with a header line in that window. */ | 20078 | we switch to a buffer with a header line in that window. */ |