changeset 29393:3ad9354ade23

(x_set_mouse_face_gc): If first glyph isn't a character glyph, use the ASCII NUL character to determine the face.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 02 Jun 2000 19:03:31 +0000
parents 615f40c9b741
children 84489c72fb8e
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Jun 02 18:46:19 2000 +0000
+++ b/src/xterm.c	Fri Jun 02 19:03:31 2000 +0000
@@ -2611,7 +2611,10 @@
   /* What face has to be used for the mouse face?  */
   face_id = FRAME_X_DISPLAY_INFO (s->f)->mouse_face_face_id;
   face = FACE_FROM_ID (s->f, face_id);
-  face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch);
+  if (s->first_glyph->type == CHAR_GLYPH)
+    face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch);
+  else
+    face_id = FACE_FOR_CHAR (s->f, face, 0);
   s->face = FACE_FROM_ID (s->f, face_id);
   PREPARE_FACE_FOR_DISPLAY (s->f, s->face);