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

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

[elpa] master 378943c 212/348: ivy.el (ivy--minibuffer-setup): Fixup max


From: Oleh Krehel
Subject: [elpa] master 378943c 212/348: ivy.el (ivy--minibuffer-setup): Fixup max-mini-window-height
Date: Sat, 8 Apr 2017 11:03:58 -0400 (EDT)

branch: master
commit 378943c3e38cad25602f7ac600ee3315c0129ca2
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy--minibuffer-setup): Fixup max-mini-window-height
    
    Fixes #732
---
 ivy.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 5d83097..030c8b5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2027,7 +2027,11 @@ depending on the number of candidates."
   (set (make-local-variable 'inhibit-field-text-motion) nil)
   (when (display-graphic-p)
     (setq truncate-lines t))
-  (setq-local max-mini-window-height ivy-height)
+  (setq-local max-mini-window-height
+              (+ ivy-height
+                 (if ivy-add-newline-after-prompt
+                     1
+                   0)))
   (when ivy-fixed-height-minibuffer
     (set-window-text-height (selected-window) ivy-height))
   (add-hook 'post-command-hook #'ivy--exhibit nil t)



reply via email to

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