]> git.eshelyaron.com Git - emacs.git/commitdiff
(face_before_or_after_it_pos): Call
authorKenichi Handa <handa@m17n.org>
Tue, 23 Jul 2002 04:50:12 +0000 (04:50 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 23 Jul 2002 04:50:12 +0000 (04:50 +0000)
FETCH_MULTIBYTE_CHAR with byte postion, not char position.

src/xdisp.c

index 6c2caf7a0934f80402067b4d60f220d6e208c947..b323a6341424dd7e3ced2b82c97500830fc8092e 100644 (file)
@@ -2497,7 +2497,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);
        }