Fix handling of glyph codes in whitespace.el

* lisp/whitespace.el (whitespace-display-vector-p): Support glyph
codes, not just plain characters.  See
https://lists.gnu.org/archive/html/help-gnu-emacs/2024-04/msg00248.html
for the details.
This commit is contained in:
Eli Zaretskii 2024-04-24 10:02:22 +03:00
parent 2df8bc4685
commit 3bf9a04742

View file

@ -2474,7 +2474,7 @@ purposes)."
(let ((i (length vec)))
(when (> i 0)
(while (and (>= (setq i (1- i)) 0)
(whitespace-char-valid-p (aref vec i))))
(whitespace-char-valid-p (glyph-char (aref vec i)))))
(< i 0))))