diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-07-11 16:14:33 +0200 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-07-11 16:15:45 +0200 |
commit | 4ba2946369cb19dfeb258839add0658c742c12a1 (patch) | |
tree | 547c77f7b9c092418ae742a929dc731b44f8e363 | |
parent | df7774be39af76d3072a0278ef815a47bf50dfe9 (diff) |
Fix composition bug caused by off-by-1 typo
* src/xdisp.c (x_produce_glyphs): Fix off-by-one typo when
computing composition glyph (Bug#23938).
-rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d5ffb25eb1..14d6f8fcf9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -27369,8 +27369,8 @@ x_produce_glyphs (struct it *it) eassume (0 < glyph_len); /* See Bug#8512. */ do - c = COMPOSITION_GLYPH (cmp, --glyph_len); - while (c == '\t' && 0 < glyph_len); + c = COMPOSITION_GLYPH (cmp, glyph_len - 1); + while (c == '\t' && 0 < --glyph_len); bool right_padded = glyph_len < cmp->glyph_len; for (i = 0; i < glyph_len; i++) |