diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/term.c | 6 |
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; |