From dc3b3548b7cd2a2170dd24d3cd8199bd9688276f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Wed, 31 May 2023 18:55:03 +0200 Subject: [PATCH] * 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))) -- 2.39.2