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

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

[elpa] master 7e8622f 286/399: ivy.el (ivy-read-action): Fix


From: Oleh Krehel
Subject: [elpa] master 7e8622f 286/399: ivy.el (ivy-read-action): Fix
Date: Sat, 20 Jul 2019 14:57:41 -0400 (EDT)

branch: master
commit 7e8622f60487fc3a91540755103358a5cd599d12
Author: Pengji Zhang <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-read-action): Fix
    
    Fix a bug introduced in #2079, which made action dispatching stop
    working because those commands rely on the return value of
    `ivy-read-action'.
    
    Fixes #2082
---
 ivy.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 6316d6e..601d2b4 100644
--- a/ivy.el
+++ b/ivy.el
@@ -819,6 +819,7 @@ selection, non-nil otherwise."
                                       (cdr actions)))
                     (not (string= key (car (nth action-idx (cdr actions))))))
           (setq key (concat key (string (read-key hint)))))
+        (ivy-shrink-after-dispatching)
         (cond ((member key '("" ""))
                nil)
               ((null action-idx)
@@ -827,8 +828,7 @@ selection, non-nil otherwise."
               (t
                (message "")
                (setcar actions (1+ action-idx))
-               (ivy-set-action actions))))))
-  (ivy-shrink-after-dispatching))
+               (ivy-set-action actions)))))))
 
 (defun ivy-shrink-after-dispatching ()
   "Shrink the window after dispatching when action list is too large."



reply via email to

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