diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 93a90dafdfe..0967041f3b6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -19029,7 +19029,7 @@ get_window_cursor_type (w, glyph, width, active_cursor) | |||
| 19029 | cursor_type = get_specified_cursor_type (b->cursor_type, width); | 19029 | cursor_type = get_specified_cursor_type (b->cursor_type, width); |
| 19030 | 19030 | ||
| 19031 | /* Use normal cursor if not blinked off. */ | 19031 | /* Use normal cursor if not blinked off. */ |
| 19032 | if (!w->cursor_off_p) | 19032 | if (!w->cursor_off_p && glyph != NULL) |
| 19033 | { | 19033 | { |
| 19034 | if (glyph->type == IMAGE_GLYPH) { | 19034 | if (glyph->type == IMAGE_GLYPH) { |
| 19035 | if (cursor_type == FILLED_BOX_CURSOR) | 19035 | if (cursor_type == FILLED_BOX_CURSOR) |
| @@ -19368,7 +19368,8 @@ display_and_set_cursor (w, on, hpos, vpos, x, y) | |||
| 19368 | 19368 | ||
| 19369 | current_glyphs = w->current_matrix; | 19369 | current_glyphs = w->current_matrix; |
| 19370 | glyph_row = MATRIX_ROW (current_glyphs, vpos); | 19370 | glyph_row = MATRIX_ROW (current_glyphs, vpos); |
| 19371 | glyph = glyph_row->glyphs[TEXT_AREA] + hpos; | 19371 | glyph = (glyph_row->cursor_in_fringe_p ? NULL |
| 19372 | : glyph_row->glyphs[TEXT_AREA] + hpos); | ||
| 19372 | 19373 | ||
| 19373 | /* If cursor row is not enabled, we don't really know where to | 19374 | /* If cursor row is not enabled, we don't really know where to |
| 19374 | display the cursor. */ | 19375 | display the cursor. */ |