# HG changeset patch # User Kenichi Handa # Date 1027399705 0 # Node ID 59cbcee222fd04abb20f0b67ca33db616eba2d48 # Parent 8e85f717a4260606673848406ff036cd76853fb4 (face_before_or_after_it_pos): Call FETCH_MULTIBYTE_CHAR with byte postion, not char position. diff -r 8e85f717a426 -r 59cbcee222fd src/xdisp.c --- 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); }