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

    ivy.el (ivy-read-action-by-key): Fix for Emacs27
    
    Fixes #2397
---
 ivy.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 9a8210b..14e382c 100644
--- a/ivy.el
+++ b/ivy.el
@@ -941,8 +941,11 @@ selection, non-nil otherwise."
       (let ((ivy--directory ivy--directory))
         (funcall ivy-read-action-function actions)))))
 
+(defvar set-message-function)
+
 (defun ivy-read-action-by-key (actions)
-  (let* ((hint (funcall ivy-read-action-format-function (cdr actions)))
+  (let* ((set-message-function nil)
+         (hint (funcall ivy-read-action-format-function (cdr actions)))
          (resize-mini-windows t)
          (key "")
          action-idx)

Reply via email to