aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Burkett2020-02-11 21:48:57 -0500
committerJustin Burkett2020-02-11 21:48:57 -0500
commit9ff54fffbb20ad92361aeeae4bc5966dbe793dd0 (patch)
tree33240f0420336c98b8daba146421ae44dea900bd
parent6e4b4c5419b7b981da6300302278de167f76126b (diff)
downloademacs-9ff54fffbb20ad92361aeeae4bc5966dbe793dd0.tar.gz
emacs-9ff54fffbb20ad92361aeeae4bc5966dbe793dd0.zip
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.
-rw-r--r--which-key.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/which-key.el b/which-key.el
index 312272c6b7b..d0a28a10589 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."
1167 "Slightly modified version of `fit-buffer-to-window'. 1167 "Slightly modified version of `fit-buffer-to-window'.
1168Use &rest params because `fit-buffer-to-window' has a different 1168Use &rest params because `fit-buffer-to-window' has a different
1169call signature in different emacs versions" 1169call signature in different emacs versions"
1170 (let ((fit-window-to-buffer-horizontally t)) 1170 (let ((fit-window-to-buffer-horizontally t)
1171 (window-min-height 1))
1171 (apply #'fit-window-to-buffer window params))) 1172 (apply #'fit-window-to-buffer window params)))
1172 1173
1173(defun which-key--show-buffer-side-window (act-popup-dim) 1174(defun which-key--show-buffer-side-window (act-popup-dim)