mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
(face_before_or_after_it_pos): Call
FETCH_MULTIBYTE_CHAR with byte postion, not char position.
This commit is contained in:
parent
0305b222b3
commit
787ad783f6
1 changed files with 1 additions and 1 deletions
|
|
@ -2497,7 +2497,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue