branch: master
commit 9a509dfc332319c8a489beef755e5d4752a63be0
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--resize-minibuffer-to-fit): Make compatible with 24.3
Fixes #220
---
ivy.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index 1949392..c5aeb9b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1410,7 +1410,10 @@ all of the text contained in the minibuffer."
(body-height (window-body-height nil t)))
(when (> text-height body-height)
(window-resize nil (- text-height body-height) nil t t)))
- (fit-window-to-buffer))))
+ (let ((text-height (count-screen-lines))
+ (body-height (window-body-height)))
+ (when (> text-height body-height)
+ (window-resize nil (- text-height body-height) nil t))))))
(declare-function colir-blend-face-background "ext:colir")