From 069315b7a1057457be78035387b9466b689a6800 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sat, 24 Jan 2004 05:00:26 +0000 Subject: [PATCH] (get_next_display_element): Pass -1 as POS to FACE_FOR_CHAR if displaying a C-string. --- src/xdisp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 6b814c0e55a..7f0ebc57a22 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4925,9 +4925,10 @@ get_next_display_element (it) && 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); } } -- 2.39.2