Mercurial > emacs
changeset 46634:59cbcee222fd
(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 04:48:25 +0000 |
parents | 8e85f717a426 |
children | 3bb9ca3da897 |
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:28:08 2002 +0000 +++ b/src/xdisp.c Tue Jul 23 04:48:25 2002 +0000 @@ -2528,7 +2528,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); }