diff options
author | Kenichi Handa <handa@m17n.org> | 2002-07-23 04:48:43 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2002-07-23 04:48:43 +0000 |
commit | 1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4 (patch) | |
tree | fc34e4fb47f00ad241a42d294595d2d83ad5d546 /src/xdisp.c | |
parent | 24f4201f844cd0617a79f485e4bd7bcb6766dccb (diff) | |
download | emacs-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.c | 2 |
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); } |