From: Kenichi Handa Date: Tue, 23 Jul 2002 04:48:43 +0000 (+0000) Subject: (face_before_or_after_it_pos): Call X-Git-Tag: ttn-vms-21-2-B4~13905 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4;p=emacs.git (face_before_or_after_it_pos): Call FETCH_MULTIBYTE_CHAR with byte postion, not char position. --- diff --git a/src/ChangeLog b/src/ChangeLog index ed300e3d380..2f8cc5665c7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-07-23 Kenichi Handa + + * xdisp.c (face_before_or_after_it_pos): Call + FETCH_MULTIBYTE_CHAR with byte postion, not char position. + 2002-07-22 Juanma Barranquero * callproc.c (init_callproc) [DOS_NT]: Initialize diff --git a/src/xdisp.c b/src/xdisp.c index cf538ed9241..f8139626d79 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -2528,7 +2528,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); }