Align columns in which-key with wide characters properly
authorThomas Voss <mail@thomasvoss.com>
Wed, 25 Sep 2024 00:17:49 +0000 (02:17 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 25 Sep 2024 11:55:25 +0000 (14:55 +0300)
commit7766ba8419955104fb675a6f4134a8a34ea73e43
tree49e8ef5b9178cb1e6348daad06f0bca5b6eb777f
parentbd25a98b4e70dbdcb6db92b0b39122a6c7386044
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
lisp/which-key.el