changeset 89728:6b4bfd0ebea7

(get_next_display_element): Pass -1 as POS to FACE_FOR_CHAR if displaying a C-string.
author Kenichi Handa <handa@m17n.org>
date Sat, 24 Jan 2004 05:00:26 +0000
parents 8c94cc7390e6
children 26b6b7710a08
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Jan 23 08:53:03 2004 +0000
+++ b/src/xdisp.c	Sat Jan 24 05:00:26 2004 +0000
@@ -4925,9 +4925,10 @@
 	  && FRAME_WINDOW_P (it->f))
 	{
 	  struct face *face = FACE_FROM_ID (it->f, it->face_id);
-	  int pos = (STRINGP (it->string)
-		     ? IT_STRING_CHARPOS (*it) : IT_CHARPOS (*it));
-
+	  int pos = (it->s ? -1
+		     : STRINGP (it->string) ? IT_STRING_CHARPOS (*it)
+		     : IT_CHARPOS (*it));
+	  
 	  it->face_id = FACE_FOR_CHAR (it->f, face, it->c, pos, it->string);
 	}
     }