branch: master
commit 07388d090c48e6f18ca72f0013baec6ff0f96739
Author: Yevgnen Koh <[email protected]>
Commit: Oleh Krehel <[email protected]>
Shrink ivy to suitable height when reading actions.
The original option 'grow-only is related to #402 .
Setting resize-mini-windows to t seems will not break
the original fix, but has the benefit that when
the action list is to small, it will shrink to suitable
height.
Fixes #764
Re #402
---
ivy.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index fb8feed..d1b9487 100644
--- a/ivy.el
+++ b/ivy.el
@@ -552,7 +552,7 @@ selection, non-nil otherwise."
(if (null (ivy--actionp actions))
t
(let* ((hint (funcall ivy-read-action-format-function (cdr actions)))
- (resize-mini-windows 'grow-only)
+ (resize-mini-windows t)
(key (string (read-key hint)))
(action-idx (cl-position-if
(lambda (x) (equal (car x) key))