branch: externals/which-key commit 9ff54fffbb20ad92361aeeae4bc5966dbe793dd0 Author: Justin Burkett <jus...@burkett.cc> Commit: Justin Burkett <jus...@burkett.cc>
Fix short windows being resized fit-window-to-buffer defaults to a min height of 4. For some reason, the order in which fit-window-to-buffer is called in display-buffer-in-side-window seems to have changed. This makes the order not matter. --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 312272c..d0a28a1 100644 --- a/which-key.el +++ b/which-key.el @@ -1167,7 +1167,8 @@ is shown, or if there is no need to start the closing timer." "Slightly modified version of `fit-buffer-to-window'. Use &rest params because `fit-buffer-to-window' has a different call signature in different emacs versions" - (let ((fit-window-to-buffer-horizontally t)) + (let ((fit-window-to-buffer-horizontally t) + (window-min-height 1)) (apply #'fit-window-to-buffer window params))) (defun which-key--show-buffer-side-window (act-popup-dim)