branch: externals/ivy-hydra
commit e860b11415a9a1e65358a217bb9d7148f5654e09
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--resize-minibuffer-to-fit): Fix "M-o" not showing the list of
actions
Re #2397
---
ivy.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 54ef11e..288c974 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3353,7 +3353,10 @@ Should be run via minibuffer `post-command-hook'."
(defun ivy--resize-minibuffer-to-fit ()
"Resize the minibuffer window size to fit the text in the minibuffer."
- (unless (frame-root-window-p (minibuffer-window))
+ (unless (or (frame-root-window-p (minibuffer-window))
+ (memq this-command '(ivy-read-action
+ ivy-dispatching-done
+ ivy-dispatching-call)))
(with-selected-window (minibuffer-window)
(if (fboundp 'window-text-pixel-size)
(let ((text-height (cdr (window-text-pixel-size)))