Commit 49a752bb authored by Kenichi Handa's avatar Kenichi Handa
Browse files

composite.c (composition_update_it): Fix computing of cmp_it->width.

parent 96ae4c8f
2010-08-30 Kenichi Handa <handa@m17n.org>
* composite.c (composition_update_it): Fix computing of
cmp_it->width.
2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
 
* nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
......
......@@ -1440,8 +1440,7 @@ composition_update_it (struct composition_it *cmp_it, EMACS_INT charpos, EMACS_I
{
c = XINT (LGSTRING_CHAR (gstring, i));
cmp_it->nbytes += CHAR_BYTES (c);
cmp_it->width = (LGLYPH_WIDTH (glyph) > 0
? CHAR_WIDTH (LGLYPH_CHAR (glyph)) : 0);
cmp_it->width += LGLYPH_WIDTH (glyph) > 0 ? CHAR_WIDTH (c) : 0;
}
}
return c;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment