diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 71fca1b5eec..16b626959c6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20201,9 +20201,14 @@ notice_overwritten_cursor (w, area, x0, x1, y0, y1) | |||
| 20201 | if (area != TEXT_AREA) | 20201 | if (area != TEXT_AREA) |
| 20202 | return; | 20202 | return; |
| 20203 | 20203 | ||
| 20204 | row = w->current_matrix->rows + w->phys_cursor.vpos; | 20204 | if (w->phys_cursor.vpos < 0 |
| 20205 | if (!row->displays_text_p) | 20205 | || w->phys_cursor.vpos >= w->current_matrix->nrows |
| 20206 | return; | 20206 | || (row = w->current_matrix->rows + w->phys_cursor.vpos, |
| 20207 | !(row->enabled_p && row->displays_text_p))) | ||
| 20208 | { | ||
| 20209 | w->phys_cursor_on_p = 0; | ||
| 20210 | return; | ||
| 20211 | } | ||
| 20207 | 20212 | ||
| 20208 | if (row->cursor_in_fringe_p) | 20213 | if (row->cursor_in_fringe_p) |
| 20209 | { | 20214 | { |