Skip to content

Commit

Permalink
Fix popup with no space
Browse files Browse the repository at this point in the history
Fixes #317
  • Loading branch information
justbur committed Sep 5, 2023
1 parent df6b0cb commit 4d20bc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion which-key.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d20bc8

Please sign in to comment.