emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/which-key 9ff54ff 37/51: Fix short windows being resize


From: Stefan Monnier
Subject: [elpa] externals/which-key 9ff54ff 37/51: Fix short windows being resized
Date: Tue, 8 Sep 2020 10:26:20 -0400 (EDT)

branch: externals/which-key
commit 9ff54fffbb20ad92361aeeae4bc5966dbe793dd0
Author: Justin Burkett <justin@burkett.cc>
Commit: Justin Burkett <justin@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]