branch: externals/ivy-hydra
commit 7c0796f26e0453860360df0a67d1ef3829b6f157
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-shrink-after-dispatching): Resize only when in minibuffer
    
    Fixes #2614
---
 ivy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 398810a..d4c0b81 100644
--- a/ivy.el
+++ b/ivy.el
@@ -889,7 +889,8 @@ will be called for each element of this list.")
 
 (defun ivy-shrink-after-dispatching ()
   "Shrink the window after dispatching when action list is too large."
-  (window-resize nil (- ivy-height (window-height))))
+  (when (window-minibuffer-p)
+    (window-resize nil (- ivy-height (window-height)))))
 
 (defun ivy-dispatching-done ()
   "Select one of the available actions and call `ivy-done'."

Reply via email to