From: Mattias EngdegÄrd Date: Wed, 31 May 2023 16:55:03 +0000 (+0200) Subject: * lisp/composite.el (compose-gstring-for-terminal): Fix omitted var. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dc3b3548b7cd2a2170dd24d3cd8199bd9688276f;p=emacs.git * 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). --- 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)))