From: Kenichi Handa Date: Tue, 23 Jul 2002 02:58:07 +0000 (+0000) Subject: (face_before_or_after_it_pos): Call X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~545 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c688e5b7a481334b00369779371849576714c111;p=emacs.git (face_before_or_after_it_pos): Call FETCH_MULTIBYTE_CHAR with byte postion, not char position. --- diff --git a/src/xdisp.c b/src/xdisp.c index 4e78364b3c4..1041bf44791 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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); }