[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/which-key 521a59b: Respect which-key-min-display-lines
From: |
ELPA Syncer |
Subject: |
[elpa] externals/which-key 521a59b: Respect which-key-min-display-lines setting |
Date: |
Thu, 25 Nov 2021 22:57:32 -0500 (EST) |
branch: externals/which-key
commit 521a59b6f461232a008fba62f79bbb14f487b16e
Author: Justin Burkett <justin@burkett.cc>
Commit: Justin Burkett <justin@burkett.cc>
Respect which-key-min-display-lines setting
Fixes #325
---
which-key.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/which-key.el b/which-key.el
index e55197e..0fa2fa3 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1973,6 +1973,13 @@ is the width of the live window."
(or prefix-title
(which-key--maybe-get-prefix-title
(key-description prefix-keys))))
+ (when (and (= (which-key--pages-num-pages result) 1)
+ (> which-key-min-display-lines
+ (which-key--pages-height result)))
+ ;; result is shorter than requested, so we artificially increase the
+ ;; height. See #325. Note this only has an effect if
+ ;; `which-key-allow-imprecise-window-fit' is non-nil.
+ (setf (which-key--pages-height result) which-key-min-display-lines))
(which-key--debug-message "Frame height: %s
Minibuffer height: %s
Max dimensions: (%s,%s)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/which-key 521a59b: Respect which-key-min-display-lines setting,
ELPA Syncer <=