Variable: which-key-unicode-correction

which-key-unicode-correction is a customizable variable defined in which-key.el.gz.

Value

3

Documentation

Correction for wide unicode characters.

Since we measure width in terms of the number of characters, Unicode characters that are wider than ASCII characters throw off the calculation for available width in the which-key buffer. This variable allows you to adjust for the wide unicode characters by artificially reducing the available width in the buffer.

The default of 3 means allow for the total extra width contributed by any wide unicode characters to be up to one additional ASCII character in the which-key buffer. Increase this number if you are seeing characters get cutoff on the right side of the which-key popup.

This variable was added, or its default value changed, in which-key version 1.0.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defcustom which-key-unicode-correction 3
  "Correction for wide unicode characters.
Since we measure width in terms of the number of characters,
Unicode characters that are wider than ASCII characters throw off
the calculation for available width in the which-key buffer.  This
variable allows you to adjust for the wide unicode characters by
artificially reducing the available width in the buffer.

The default of 3 means allow for the total extra width
contributed by any wide unicode characters to be up to one
additional ASCII character in the which-key buffer.  Increase this
number if you are seeing characters get cutoff on the right side
of the which-key popup."
  :type 'integer
  :package-version '(which-key . "1.0") :version "30.1")