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

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

[elpa] externals/ivy-hydra 7c0796f 333/395: ivy.el (ivy-shrink-after-dis


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 7c0796f 333/395: ivy.el (ivy-shrink-after-dispatching): Resize only when in minibuffer
Date: Thu, 25 Feb 2021 08:32:32 -0500 (EST)

branch: externals/ivy-hydra
commit 7c0796f26e0453860360df0a67d1ef3829b6f157
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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

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