(face_before_or_after_it_pos): Call
authorKenichi Handa <handa@m17n.org>
Tue, 23 Jul 2002 04:48:43 +0000 (04:48 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 23 Jul 2002 04:48:43 +0000 (04:48 +0000)
FETCH_MULTIBYTE_CHAR with byte postion, not char position.

src/ChangeLog
src/xdisp.c

index ed300e3..2f8cc56 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-23  Kenichi Handa  <handa@etl.go.jp>
+
+       * xdisp.c (face_before_or_after_it_pos): Call
+       FETCH_MULTIBYTE_CHAR with byte postion, not char position.
+
 2002-07-22  Juanma Barranquero  <lektu@terra.es>
 
        * callproc.c (init_callproc) [DOS_NT]: Initialize
index cf538ed..f813962 100644 (file)
@@ -2528,7 +2528,7 @@ face_before_or_after_it_pos (it, before_p)
         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);
        }