branch: master
commit 4a7ba2fabf095b80efb52a46a01ae5123cfa647a
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)