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

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

[elpa] master 4a7ba2f 15/57: Try to prevent the resize of minibuffer win


From: Oleh Krehel
Subject: [elpa] master 4a7ba2f 15/57: Try to prevent the resize of minibuffer window
Date: Tue, 19 May 2015 14:21:24 +0000

branch: master
commit 4a7ba2fabf095b80efb52a46a01ae5123cfa647a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Try to prevent the resize of minibuffer window
    
    * ivy.el (ivy--insert-minibuffer): Temporarily bind
      `resize-mini-windows' to nil.
    
    From its doc:
        A value of `grow-only', the default, means let mini-windows grow only;
        they return to their normal size when the minibuffer is closed, or the
        echo area becomes empty.
    
    It could be that an update catches this minibuffer empty during
    `ivy--insert-minibuffer'.
    
    Re #77
---
 ivy.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index eed6acb..9adeae0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -934,10 +934,11 @@ Should be run via minibuffer `post-command-hook'."
 
 (defun ivy--insert-minibuffer (text)
   "Insert TEXT into minibuffer with appropriate cleanup."
-  (ivy--cleanup)
-  (let ((buffer-undo-list t)
+  (let ((resize-mini-windows nil)
+        (buffer-undo-list t)
         (update-fn (ivy-state-update-fn ivy-last))
         deactivate-mark)
+    (ivy--cleanup)
     (when update-fn
       (funcall update-fn))
     (ivy--insert-prompt)



reply via email to

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