diff options
| author | Kim F. Storm | 2004-11-17 00:27:37 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-17 00:27:37 +0000 |
| commit | 78e7b91f176535ca99647555a519652d4f289b44 (patch) | |
| tree | 1828da3ef6d710a754ca9cd278704baa3ab0eb74 /src | |
| parent | 5ff504feccf445931901ffbb9755db4fce1e32da (diff) | |
| download | emacs-78e7b91f176535ca99647555a519652d4f289b44.tar.gz emacs-78e7b91f176535ca99647555a519652d4f289b44.zip | |
(erase_phys_cursor): Adjust cursor row visible height.
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. */ |