Mercurial > emacs
diff src/xdisp.c @ 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 | 1538d056ea25 |
children | 15e8803e8410 |
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); }