branch: master
commit d9608bfb593fdc3a60ffa81a19b0533313d44f26
Author: Shihpin Tseng <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-read-action): Allow quit by ESC for better work with evil
    
    Fixes #952
---
 ivy.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index c81d0cb..cf35405 100644
--- a/ivy.el
+++ b/ivy.el
@@ -587,7 +587,7 @@ selection, non-nil otherwise."
              (action-idx (cl-position-if
                           (lambda (x) (equal (car x) key))
                           (cdr actions))))
-        (cond ((string= key "")
+        (cond ((member key '("" ""))
                nil)
               ((null action-idx)
                (message "%s is not bound" key)

Reply via email to