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

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

[elpa] master 9a509df 47/54: ivy.el (ivy--resize-minibuffer-to-fit): Mak


From: Oleh Krehel
Subject: [elpa] master 9a509df 47/54: ivy.el (ivy--resize-minibuffer-to-fit): Make compatible with 24.3
Date: Tue, 29 Sep 2015 14:10:09 +0000

branch: master
commit 9a509dfc332319c8a489beef755e5d4752a63be0
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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")
 



reply via email to

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