Align columns in which-key with wide characters properly
In the case that a character takes up multple columns (such as `…' when used as a truncation character), make sure that the columns are still aligned properly. * lisp/which-key.el (which-key--pad-column): Use `string-width' instead of `length'. (Bug#73463) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
bd25a98b4e
commit
7766ba8419
1 changed files with 1 additions and 1 deletions
|
@ -2037,7 +2037,7 @@ that width."
|
||||||
(mapcar (pcase-lambda (`(,key ,sep ,desc ,_doc))
|
(mapcar (pcase-lambda (`(,key ,sep ,desc ,_doc))
|
||||||
(concat
|
(concat
|
||||||
(format col-format key sep desc)
|
(format col-format key sep desc)
|
||||||
(make-string (- col-desc-width (length desc)) ?\s)))
|
(make-string (- col-desc-width (string-width desc)) ?\s)))
|
||||||
col-keys))))
|
col-keys))))
|
||||||
|
|
||||||
(defun which-key--partition-list (n list)
|
(defun which-key--partition-list (n list)
|
||||||
|
|
Loading…
Add table
Reference in a new issue