Mercurial > emacs
comparison src/xdisp.c @ 88883:93014ea2ab20
(face_before_or_after_it_pos): Call
FETCH_MULTIBYTE_CHAR with byte postion, not char position.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 23 Jul 2002 02:58:07 +0000 |
parents | 1538d056ea25 |
children | 15e8803e8410 |
comparison
equal
deleted
inserted
replaced
88882:a72dd86dcff5 | 88883:93014ea2ab20 |
---|---|
2513 /* Correct the face for charsets different from ASCII. Do it | 2513 /* Correct the face for charsets different from ASCII. Do it |
2514 for the multibyte case only. The face returned above is | 2514 for the multibyte case only. The face returned above is |
2515 suitable for unibyte text if current_buffer is unibyte. */ | 2515 suitable for unibyte text if current_buffer is unibyte. */ |
2516 if (it->multibyte_p) | 2516 if (it->multibyte_p) |
2517 { | 2517 { |
2518 int c = FETCH_MULTIBYTE_CHAR (CHARPOS (pos)); | 2518 int c = FETCH_MULTIBYTE_CHAR (BYTEPOS (pos)); |
2519 struct face *face = FACE_FROM_ID (it->f, face_id); | 2519 struct face *face = FACE_FROM_ID (it->f, face_id); |
2520 face_id = FACE_FOR_CHAR (it->f, face, c); | 2520 face_id = FACE_FOR_CHAR (it->f, face, c); |
2521 } | 2521 } |
2522 } | 2522 } |
2523 | 2523 |