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

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

[elpa] externals/ivy-hydra 0e4a55f 242/395: ivy.el (ivy--preselect-index


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 0e4a55f 242/395: ivy.el (ivy--preselect-index): Don't return nil
Date: Thu, 25 Feb 2021 08:32:11 -0500 (EST)

branch: externals/ivy-hydra
commit 0e4a55f9a1d7dab6a875cc26ad17dc460a98c443
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ivy.el (ivy--preselect-index): Don't return nil
---
 ivy.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 69769f6..a4d1352 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2751,8 +2751,8 @@ Minibuffer bindings:
              (cl-position preselect candidates)
            preselect))
         ((cl-position preselect candidates :test #'equal))
-        ((ivy--regex-p preselect)
-         (cl-position preselect candidates :test #'string-match-p))
+        ((and (ivy--regex-p preselect)
+              (cl-position preselect candidates :test #'string-match-p)))
         (t 0)))
 
 ;;* Implementation



reply via email to

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