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

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

[elpa] master 71bb1c0 144/272: ivy.el (ivy-alt-done): Simplify


From: Oleh Krehel
Subject: [elpa] master 71bb1c0 144/272: ivy.el (ivy-alt-done): Simplify
Date: Mon, 25 Apr 2016 10:13:22 +0000

branch: master
commit 71bb1c012c1bfb68e414f49c59baad71c93f8069
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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)



reply via email to

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