From 4d20bc852545a2e602f59084a630f888542052b1 Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Tue, 5 Sep 2023 17:28:29 -0400 Subject: [PATCH] Fix popup with no space Fixes #317 --- which-key.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 25f2397..d68942c 100644 --- a/which-key.el +++ b/which-key.el @@ -2682,7 +2682,9 @@ Finally, show the buffer." (and which-key--god-mode-support-enabled (bound-and-true-p god-local-mode) (eq this-command 'god-mode-self-insert)) - (null this-command))) + (null this-command)) + (let ((max-dim (which-key--popup-max-dimensions))) + (> (min (car-safe max-dim) (cdr-safe max-dim)) 0))) (when (and (not (equal prefix-keys (which-key--current-prefix))) (or (null which-key-delay-functions) (null (setq delay-time