aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2009-02-12 05:55:02 +0000
committerKenichi Handa2009-02-12 05:55:02 +0000
commit285e85c6da6ffde6e2c5113501759e8f63d44f37 (patch)
treef0f6246be05b080a3d23cd5dc7cd8c944fbd31dc
parent648ab841cc84132db064848c92f0d0b70ec7b532 (diff)
downloademacs-285e85c6da6ffde6e2c5113501759e8f63d44f37.tar.gz
emacs-285e85c6da6ffde6e2c5113501759e8f63d44f37.zip
(encode_terminal_code): Adjusted for the change of
<struct glyph>.u.cmp.to. (append_composite_glyph): Likewise.
-rw-r--r--src/term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index c425337fe71..3fbc3c46c4d 100644
--- a/src/term.c
+++ b/src/term.c
@@ -604,7 +604,7 @@ encode_terminal_code (src, src_len, coding)
604 if (src->u.cmp.automatic) 604 if (src->u.cmp.automatic)
605 { 605 {
606 gstring = composition_gstring_from_id (src->u.cmp.id); 606 gstring = composition_gstring_from_id (src->u.cmp.id);
607 required = src->u.cmp.to - src->u.cmp.from; 607 required = src->u.cmp.to + 1 - src->u.cmp.from;
608 } 608 }
609 else 609 else
610 { 610 {
@@ -621,7 +621,7 @@ encode_terminal_code (src, src_len, coding)
621 } 621 }
622 622
623 if (src->u.cmp.automatic) 623 if (src->u.cmp.automatic)
624 for (i = src->u.cmp.from; i < src->u.cmp.to; i++) 624 for (i = src->u.cmp.from; i <= src->u.cmp.to; i++)
625 { 625 {
626 Lisp_Object g = LGSTRING_GLYPH (gstring, i); 626 Lisp_Object g = LGSTRING_GLYPH (gstring, i);
627 int c = LGLYPH_CHAR (g); 627 int c = LGLYPH_CHAR (g);
@@ -1788,7 +1788,7 @@ append_composite_glyph (it)
1788 glyph->u.cmp.automatic = 1; 1788 glyph->u.cmp.automatic = 1;
1789 glyph->u.cmp.id = it->cmp_it.id; 1789 glyph->u.cmp.id = it->cmp_it.id;
1790 glyph->u.cmp.from = it->cmp_it.from; 1790 glyph->u.cmp.from = it->cmp_it.from;
1791 glyph->u.cmp.to = it->cmp_it.to; 1791 glyph->u.cmp.to = it->cmp_it.to - 1;
1792 } 1792 }
1793 1793
1794 glyph->face_id = it->face_id; 1794 glyph->face_id = it->face_id;