branch: master
commit 71bb1c012c1bfb68e414f49c59baad71c93f8069
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-alt-done): Simplify
---
ivy.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 9767332..c73e5a5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -520,8 +520,7 @@ When ARG is t, exit with current text, ignoring the
candidates."
(ivy--directory
(ivy--directory-done))
((eq (ivy-state-collection ivy-last) 'Info-read-node-name-1)
- (if (or (equal ivy--current "(./)")
- (equal ivy--current "(../)"))
+ (if (member ivy--current '("(./)" "(../)"))
(ivy-quit-and-run
(ivy-read "Go to file: " 'read-file-name-internal
:action (lambda (x)