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

src/xdisp.c

index 4e78364b3c42120c9ea676971ba3cdc96d500b1e..1041bf44791a5fe8353fc91d07047e2f113076a7 100644 (file)
@@ -2515,7 +2515,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);
        }