diff options
| author | Eli Zaretskii | 2016-07-11 17:18:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-07-11 17:18:11 +0300 |
| commit | 10cfb736e2d32bd2604dc93a979ce136473b5944 (patch) | |
| tree | 547c77f7b9c092418ae742a929dc731b44f8e363 /src | |
| parent | df7774be39af76d3072a0278ef815a47bf50dfe9 (diff) | |
| download | emacs-10cfb736e2d32bd2604dc93a979ce136473b5944.tar.gz emacs-10cfb736e2d32bd2604dc93a979ce136473b5944.zip | |
Fix display of composed characters
* src/xdisp.c (x_produce_glyphs): Fix off-by-one error in
iteration through composition glyphs. (Bug#23938)
Diffstat (limited to 'src')
| -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 d5ffb25eb18..14d6f8fcf93 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -27369,8 +27369,8 @@ x_produce_glyphs (struct it *it) | |||
| 27369 | 27369 | ||
| 27370 | eassume (0 < glyph_len); /* See Bug#8512. */ | 27370 | eassume (0 < glyph_len); /* See Bug#8512. */ |
| 27371 | do | 27371 | do |
| 27372 | c = COMPOSITION_GLYPH (cmp, --glyph_len); | 27372 | c = COMPOSITION_GLYPH (cmp, glyph_len - 1); |
| 27373 | while (c == '\t' && 0 < glyph_len); | 27373 | while (c == '\t' && 0 < --glyph_len); |
| 27374 | 27374 | ||
| 27375 | bool right_padded = glyph_len < cmp->glyph_len; | 27375 | bool right_padded = glyph_len < cmp->glyph_len; |
| 27376 | for (i = 0; i < glyph_len; i++) | 27376 | for (i = 0; i < glyph_len; i++) |