branch: externals/which-key commit 1f5e53285282416be34846698fdfafc29dac034d Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
Avoid code-duplication in which-key--hide-popup --- which-key.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/which-key.el b/which-key.el index 3514226..b576a5b 100644 --- a/which-key.el +++ b/which-key.el @@ -1143,17 +1143,14 @@ total height." (when (and which-key-idle-secondary-delay which-key--secondary-timer-active) (which-key--start-timer)) (which-key--lighter-restore) - (cl-case which-key-popup-type - ;; Not necessary to hide minibuffer - ;; (minibuffer (which-key--hide-buffer-minibuffer)) - (side-window (which-key--hide-buffer-side-window)) - (frame (which-key--hide-buffer-frame)) - (custom (funcall which-key-custom-hide-popup-function))))) + (which-key--hide-popup-ignore-command))) (defun which-key--hide-popup-ignore-command () "Version of `which-key--hide-popup' without the check of `real-this-command'." (cl-case which-key-popup-type + ;; Not necessary to hide minibuffer + ;; (minibuffer (which-key--hide-buffer-minibuffer)) (side-window (which-key--hide-buffer-side-window)) (frame (which-key--hide-buffer-frame)) (custom (funcall which-key-custom-hide-popup-function))))