[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master dc3b3548b7c: * lisp/composite.el (compose-gstring-for-terminal):
From: |
Mattias Engdegård |
Subject: |
master dc3b3548b7c: * lisp/composite.el (compose-gstring-for-terminal): Fix omitted var. |
Date: |
Wed, 31 May 2023 13:24:00 -0400 (EDT) |
branch: master
commit dc3b3548b7cd2a2170dd24d3cd8199bd9688276f
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
* lisp/composite.el (compose-gstring-for-terminal): Fix omitted var.
It may not make much of a difference since the code path is probably
only taken once for i=0 with no more glyphs in the input, but this
change avoids depending on such external invariants and makes
the code less mystifying to the reader (bug#63807).
---
lisp/composite.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/composite.el b/lisp/composite.el
index fb8b76114f4..06c7c174163 100644
--- a/lisp/composite.el
+++ b/lisp/composite.el
@@ -818,7 +818,7 @@ prepending a space before it."
(setq glyph (lgstring-glyph gstring i))
(lglyph-set-char glyph 32)
(lglyph-set-width glyph 1)
- (setq i (+ 2)))
+ (setq i (+ i 2)))
(let ((from (lglyph-from glyph))
(to (lglyph-to glyph))
(j (1+ i)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master dc3b3548b7c: * lisp/composite.el (compose-gstring-for-terminal): Fix omitted var.,
Mattias Engdegård <=