emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 10cfb73 1/2: Fix display of composed characters


From: Eli Zaretskii
Subject: [Emacs-diffs] master 10cfb73 1/2: Fix display of composed characters
Date: Mon, 11 Jul 2016 14:20:20 +0000 (UTC)

branch: master
commit 10cfb736e2d32bd2604dc93a979ce136473b5944
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix display of composed characters
    
    * src/xdisp.c (x_produce_glyphs): Fix off-by-one error in
    iteration through composition glyphs.  (Bug#23938)
---
 src/xdisp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index d5ffb25..14d6f8f 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++)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]