# HG changeset patch # User Kenichi Handa # Date 1234418102 0 # Node ID 05ec76bd8aa478e58d9b277d633bf7550a24e529 # Parent 8de12e68959433c8da27d61bab929fcae023db60 (encode_terminal_code): Adjusted for the change of .u.cmp.to. (append_composite_glyph): Likewise. diff -r 8de12e689594 -r 05ec76bd8aa4 src/term.c --- a/src/term.c Thu Feb 12 05:54:20 2009 +0000 +++ b/src/term.c Thu Feb 12 05:55:02 2009 +0000 @@ -604,7 +604,7 @@ if (src->u.cmp.automatic) { gstring = composition_gstring_from_id (src->u.cmp.id); - required = src->u.cmp.to - src->u.cmp.from; + required = src->u.cmp.to + 1 - src->u.cmp.from; } else { @@ -621,7 +621,7 @@ } if (src->u.cmp.automatic) - for (i = src->u.cmp.from; i < src->u.cmp.to; i++) + for (i = src->u.cmp.from; i <= src->u.cmp.to; i++) { Lisp_Object g = LGSTRING_GLYPH (gstring, i); int c = LGLYPH_CHAR (g); @@ -1788,7 +1788,7 @@ glyph->u.cmp.automatic = 1; glyph->u.cmp.id = it->cmp_it.id; glyph->u.cmp.from = it->cmp_it.from; - glyph->u.cmp.to = it->cmp_it.to; + glyph->u.cmp.to = it->cmp_it.to - 1; } glyph->face_id = it->face_id;