From b58fad7eeef75c0032d043406e212bd5b3c121bf Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 1 Oct 2021 11:15:17 +0200 Subject: [PATCH] fix: unresponsive which-key C-h bindings Since the which-key window didn't have focus, its C-h keybinds were unpredictably unresponsive, making next/previous-page navigation et co finnicky. This commit restores the needed focus. Ref https://www.reddit.com/r/emacs/comments/pwr7va/comment/heydq4g --- modules/ui/popup/+hacks.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/popup/+hacks.el b/modules/ui/popup/+hacks.el index 0e26d9446..2140ed708 100644 --- a/modules/ui/popup/+hacks.el +++ b/modules/ui/popup/+hacks.el @@ -374,9 +374,9 @@ Ugh, such an ugly hack." which-key-custom-hide-popup-function #'which-key--hide-buffer-side-window which-key-custom-show-popup-function (lambda (act-popup-dim) - (letf! ((defun display-buffer-in-side-window (buffer alist) - (+popup-display-buffer-stacked-side-window-fn - buffer (append '((vslot . -9999)) alist)))) + (letf! (defun display-buffer-in-side-window (buffer alist) + (+popup-display-buffer-stacked-side-window-fn + buffer (append '((vslot . -9999) (select . t)) alist))) ;; HACK Fix #2219 where the which-key popup would get cut off. (setcar act-popup-dim (1+ (car act-popup-dim))) (which-key--show-buffer-side-window act-popup-dim))))))