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

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

[elpa] master 7a2070b 45/54: Fix minibuffer collapse in text mode emacs


From: Oleh Krehel
Subject: [elpa] master 7a2070b 45/54: Fix minibuffer collapse in text mode emacs
Date: Tue, 29 Sep 2015 14:10:08 +0000

branch: master
commit 7a2070b48ff819edf509678a997dd062625e5d7d
Author: Julien Wietrich <address@hidden>
Commit: Julien Wietrich <address@hidden>

    Fix minibuffer collapse in text mode emacs
    
    In graphic mode : resize-mini-windows is temporarily set to nil, the
    only value which does not collapse the minibuffer.
    
    In text mode : if resize-mini-windows is nil, it is temporarily set to
    'grow-only (default emacs value).
    
    This prevent the minibuffer collapse in both graphic and text mode.
    
    In text mode it respects the user settings if it is already set to
    'grow-only or t.
    
    Fix #237 in text mode emacs too.
---
 ivy.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 13ecd19..1949392 100644
--- a/ivy.el
+++ b/ivy.el
@@ -890,7 +890,10 @@ candidates with each input."
              (let* ((hist (or history 'ivy-history))
                     (minibuffer-completion-table collection)
                     (minibuffer-completion-predicate predicate)
-                    (resize-mini-windows nil)
+                    (resize-mini-windows (cond
+                                          ((display-graphic-p) nil)
+                                          ((null resize-mini-windows) 
'grow-only)
+                                          (t resize-mini-windows)))
                     (res (read-from-minibuffer
                           prompt
                           (ivy-state-initial-input ivy-last)



reply via email to

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