]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix minibuffer collapses to one line
authorJulien Wietrich <julien.w6h@gmail.com>
Sat, 19 Sep 2015 17:12:15 +0000 (19:12 +0200)
committerJulien Wietrich <julien.w6h@gmail.com>
Sat, 19 Sep 2015 17:12:15 +0000 (19:12 +0200)
It happens since commit SHA:d374afea36df19b5d6b654adc6018b25d6c1d8f2
when resize-mini-windows is set to true.

It also happens when resize-mini-windows is set to 'grow-only (default)
and multiple frames are open.
(Although SHA:435f2b6edfe3ab517c9eda56c6351f0bcfdf3845 work around it)

Temporarily bind `resize-mini-windows' to nil before calling
`read-from-minibuffer'.

Fix #237 and #229

It might fix #77 although this need to be checked as I cannot reproduce it.

ivy.el

diff --git a/ivy.el b/ivy.el
index 63b5b743ae945f2af30b29a5fc61bf0ee23ddbe9..375ab79c54ff3c18eb5199b73e0f2aba0797b0e5 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -890,6 +890,7 @@ candidates with each input."
              (let* ((hist (or history 'ivy-history))
                     (minibuffer-completion-table collection)
                     (minibuffer-completion-predicate predicate)
+                    (resize-mini-windows nil)
                     (res (read-from-minibuffer
                           prompt
                           (ivy-state-initial-input ivy-last)