1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 02:31:03 -08:00

composite.c (composition_update_it): Fix indexing of LGSTRING_CHAR (Bug#15984).

This commit is contained in:
Kenichi Handa 2014-01-13 08:23:55 +09:00
parent 9685190b46
commit 67671fb1dc
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-01-11 K. Handa <handa@gnu.org>
* composite.c (composition_update_it): Fix indexing of
LGSTRING_CHAR (Bug#15984).
2014-01-11 Fabrice Popineau <fabrice.popineau@gmail.com>
* unexw32.c (_start) [__MINGW64__]: Define to __start.

View file

@ -1412,7 +1412,7 @@ composition_update_it (struct composition_it *cmp_it, ptrdiff_t charpos, ptrdiff
cmp_it->width = 0;
for (i = cmp_it->nchars - 1; i >= 0; i--)
{
c = XINT (LGSTRING_CHAR (gstring, i));
c = XINT (LGSTRING_CHAR (gstring, cmp_it->from + i));
cmp_it->nbytes += CHAR_BYTES (c);
cmp_it->width += CHAR_WIDTH (c);
}