aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2004-02-17 21:36:00 +0000
committerKim F. Storm2004-02-17 21:36:00 +0000
commit5c7528cd68f7fa20808782690f85c98ed185e86e (patch)
tree046b93721b102b31b338591dde0696ba0a1fd7a2
parentb26f249f3e403e0a614d7906a46592948bf783e5 (diff)
downloademacs-5c7528cd68f7fa20808782690f85c98ed185e86e.tar.gz
emacs-5c7528cd68f7fa20808782690f85c98ed185e86e.zip
(get_window_cursor_type): Don't look at glyph if NULL.
(display_and_set_cursor): Set glyph to NULL if cursor in fringe.
-rw-r--r--src/xdisp.c5
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. */