Fix problem with 'vertical-motion' and emoji
* src/font.c (font_range): Pass correct position to font_for_char (Bug#51012).
This commit is contained in:
parent
13f459b3ac
commit
9750e78202
1 changed files with 1 additions and 1 deletions
|
@ -3918,7 +3918,7 @@ font_range (ptrdiff_t pos, ptrdiff_t pos_byte, ptrdiff_t *limit,
|
|||
val = XCAR (val);
|
||||
else if (VECTORP (val))
|
||||
val = AREF (val, 0);
|
||||
font_object = font_for_char (face, XFIXNAT (val), pos - 1, string);
|
||||
font_object = font_for_char (face, XFIXNAT (val), pos, string);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue