diff options
| author | Mattias EngdegÄrd | 2023-05-31 18:55:03 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-05-31 18:55:03 +0200 |
| commit | dc3b3548b7cd2a2170dd24d3cd8199bd9688276f (patch) | |
| tree | b0236c162dd975b0201236ef946b55bafe95ddfb | |
| parent | ddf8587bb542d9826aa7c66e97365923d3f53ea0 (diff) | |
| download | emacs-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.el | 2 |
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))) |