Echo area covers bottom of which-key?

What happened?

I’m a noob so ask for all the clarification you need.

When I pressed SPC, emacs-which-key eventually pops up with the keybind hints. However, as you can see from the attached screenshot, the bottom row of the emacs-which-key popup is partially cut off by the echo area. This does not happen with Emacs in the terminal.

What did you expect to happen?

I thought the echo area should be completely below the which-key popup, instead of covering it partially.

Steps to reproduce

  1. Open Doom Emacs
  2. Press SPC
  3. Observe echo area covering which-key popup

System information


Loading data dump...

Workaround

If I set (which-key-setup-minibuffer) to “take over the minibuffer” as listed in the emacs-which-key readme, then the which-key popup is fully displayed, and the echo area prefixes (?) are displayed at the top left of the which-key minibuffer popup. I’m using this for now.

2 Likes

I’m having the same issue:

I’ll see if I can find a solution.

Try this snippet in your config.el:

(defadvice! fix-which-key--show-popup (fn act-popup-dim)
  :around #'which-key--show-popup
  (let ((height (car act-popup-dim))
        (width  (cdr act-popup-dim)))
    (funcall fn (cons (+ height 1) width))))
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.