diff options
| author | Justin Burkett | 2020-02-11 21:48:57 -0500 |
|---|---|---|
| committer | Justin Burkett | 2020-02-11 21:48:57 -0500 |
| commit | 9ff54fffbb20ad92361aeeae4bc5966dbe793dd0 (patch) | |
| tree | 33240f0420336c98b8daba146421ae44dea900bd | |
| parent | 6e4b4c5419b7b981da6300302278de167f76126b (diff) | |
| download | emacs-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.el | 3 |
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'. |
| 1168 | Use &rest params because `fit-buffer-to-window' has a different | 1168 | Use &rest params because `fit-buffer-to-window' has a different |
| 1169 | call signature in different emacs versions" | 1169 | call 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) |