diff options
| author | Kenichi Handa | 2002-07-23 04:48:43 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-07-23 04:48:43 +0000 |
| commit | 1d1b6e6a715cbe4aa05197fdbe28c1c4dca66ce4 (patch) | |
| tree | fc34e4fb47f00ad241a42d294595d2d83ad5d546 /src | |
| parent | 24f4201f844cd0617a79f485e4bd7bcb6766dccb (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
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 @@ | |||
| 1 | 2002-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 | |||
| 1 | 2002-07-22 Juanma Barranquero <lektu@terra.es> | 6 | 2002-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 | } |