summaryrefslogtreecommitdiff
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2002-07-23 04:48:43 +0000
committerKenichi Handa <handa@m17n.org>2002-07-23 04:48:43 +0000
commit1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4 (patch)
treefc34e4fb47f00ad241a42d294595d2d83ad5d546 /src/xdisp.c
parent24f4201f844cd0617a79f485e4bd7bcb6766dccb (diff)
downloademacs-1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4.tar.gz
(face_before_or_after_it_pos): Call
FETCH_MULTIBYTE_CHAR with byte postion, not char position.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
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);
}