justbur / emacs-which-key

Emacs package that displays available keybindings in popup
GNU General Public License v3.0
1.73k stars 87 forks source link

which-key menu misalignment with ellipsis char #344

Closed randomizedthinking closed 2 years ago

randomizedthinking commented 2 years ago

On my system, which-key didn't align key menus when there are ellipsis chars. Below is a screenshot:

image

Look closely, we can see that misalignment occurs with the ellipsis chars. Yet, on the terminal emacs, the alignment is good. Again, see a screenshot below.

image

Since I use the default setting from doom-emacs. Is there any options I can tweak to correct this issue?

randomizedthinking commented 2 years ago

After further checking, this issue is caused by the ellipsis char (0x2026): which-key assumes the width of the ellipsis is 1 yet it is actually 2 under the chinese font I use...