aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-07-23 04:48:43 +0000
committerKenichi Handa2002-07-23 04:48:43 +0000
commit1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4 (patch)
treefc34e4fb47f00ad241a42d294595d2d83ad5d546 /src
parent24f4201f844cd0617a79f485e4bd7bcb6766dccb (diff)
downloademacs-1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4.tar.gz
emacs-1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4.zip
(face_before_or_after_it_pos): Call
FETCH_MULTIBYTE_CHAR with byte postion, not char position.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ed300e3d380..2f8cc5665c7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12002-07-23 Kenichi Handa <handa@etl.go.jp>
2
3 * xdisp.c (face_before_or_after_it_pos): Call
4 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
5
12002-07-22 Juanma Barranquero <lektu@terra.es> 62002-07-22 Juanma Barranquero <lektu@terra.es>
2 7
3 * callproc.c (init_callproc) [DOS_NT]: Initialize 8 * 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)
2528 suitable for unibyte text if current_buffer is unibyte. */ 2528 suitable for unibyte text if current_buffer is unibyte. */
2529 if (it->multibyte_p) 2529 if (it->multibyte_p)
2530 { 2530 {
2531 int c = FETCH_MULTIBYTE_CHAR (CHARPOS (pos)); 2531 int c = FETCH_MULTIBYTE_CHAR (BYTEPOS (pos));
2532 struct face *face = FACE_FROM_ID (it->f, face_id); 2532 struct face *face = FACE_FROM_ID (it->f, face_id);
2533 face_id = FACE_FOR_CHAR (it->f, face, c); 2533 face_id = FACE_FOR_CHAR (it->f, face, c);
2534 } 2534 }