changeset 88883:93014ea2ab20

(face_before_or_after_it_pos): Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
author Kenichi Handa <handa@m17n.org>
date Tue, 23 Jul 2002 02:58:07 +0000
parents a72dd86dcff5
children 9d76d33fbcff
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Jul 23 02:57:49 2002 +0000
+++ b/src/xdisp.c	Tue Jul 23 02:58:07 2002 +0000
@@ -2515,7 +2515,7 @@
 	 suitable for unibyte text if current_buffer is unibyte.  */
       if (it->multibyte_p)
 	{
-	  int c = FETCH_MULTIBYTE_CHAR (CHARPOS (pos));
+	  int c = FETCH_MULTIBYTE_CHAR (BYTEPOS (pos));
 	  struct face *face = FACE_FROM_ID (it->f, face_id);
 	  face_id = FACE_FOR_CHAR (it->f, face, c);
 	}