aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-05-31 18:55:03 +0200
committerMattias EngdegÄrd2023-05-31 18:55:03 +0200
commitdc3b3548b7cd2a2170dd24d3cd8199bd9688276f (patch)
treeb0236c162dd975b0201236ef946b55bafe95ddfb
parentddf8587bb542d9826aa7c66e97365923d3f53ea0 (diff)
downloademacs-dc3b3548b7cd2a2170dd24d3cd8199bd9688276f.tar.gz
emacs-dc3b3548b7cd2a2170dd24d3cd8199bd9688276f.zip
* 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).
-rw-r--r--lisp/composite.el2
1 files changed, 1 insertions, 1 deletions
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."
818 (setq glyph (lgstring-glyph gstring i)) 818 (setq glyph (lgstring-glyph gstring i))
819 (lglyph-set-char glyph 32) 819 (lglyph-set-char glyph 32)
820 (lglyph-set-width glyph 1) 820 (lglyph-set-width glyph 1)
821 (setq i (+ 2))) 821 (setq i (+ i 2)))
822 (let ((from (lglyph-from glyph)) 822 (let ((from (lglyph-from glyph))
823 (to (lglyph-to glyph)) 823 (to (lglyph-to glyph))
824 (j (1+ i))) 824 (j (1+ i)))