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
(cherry picked from commit
7766ba8419955104fb675a6f4134a8a34ea73e43)
(mapcar (pcase-lambda (`(,key ,sep ,desc ,_doc))
(concat
(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))))
(defun which-key--partition-list (n list)