1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

Hide paging hint when prefix is help-char

We can't do paging in this case.
This commit is contained in:
Justin Burkett 2020-09-08 14:18:21 -04:00
parent d794c4a0af
commit a70fc16adc

View file

@ -2125,7 +2125,9 @@ max-lines max-width avl-lines avl-width (which-key--pages-height result))
(key (if paging-key-bound
(concat key " or " which-key-paging-key)
key)))
(when which-key-use-C-h-commands
(when (and which-key-use-C-h-commands
(not (string-equal (char-to-string help-char)
(kbd prefix-keys))))
(which-key--propertize (format "[%s paging/help]" key)
'face 'which-key-note-face))))