aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-06-02 19:03:31 +0000
committerGerd Moellmann2000-06-02 19:03:31 +0000
commit033e3e18df29b7e9cf98f4ae66125b06774b0af1 (patch)
tree73416562afb561fc7f3f28ce630b1bd48015e719 /src
parent37193ee6327794f520cf8856a27e57bbda8bba10 (diff)
downloademacs-033e3e18df29b7e9cf98f4ae66125b06774b0af1.tar.gz
emacs-033e3e18df29b7e9cf98f4ae66125b06774b0af1.zip
(x_set_mouse_face_gc): If first glyph isn't a character
glyph, use the ASCII NUL character to determine the face.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 28280a4bd46..ba719f76897 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2611,7 +2611,10 @@ x_set_mouse_face_gc (s)
2611 /* What face has to be used for the mouse face? */ 2611 /* What face has to be used for the mouse face? */
2612 face_id = FRAME_X_DISPLAY_INFO (s->f)->mouse_face_face_id; 2612 face_id = FRAME_X_DISPLAY_INFO (s->f)->mouse_face_face_id;
2613 face = FACE_FROM_ID (s->f, face_id); 2613 face = FACE_FROM_ID (s->f, face_id);
2614 face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch); 2614 if (s->first_glyph->type == CHAR_GLYPH)
2615 face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch);
2616 else
2617 face_id = FACE_FOR_CHAR (s->f, face, 0);
2615 s->face = FACE_FROM_ID (s->f, face_id); 2618 s->face = FACE_FROM_ID (s->f, face_id);
2616 PREPARE_FACE_FOR_DISPLAY (s->f, s->face); 2619 PREPARE_FACE_FOR_DISPLAY (s->f, s->face);
2617 2620