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

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

[elpa] master 0a9780b 046/272: ivy.el (ivy--recompute-index): Update cl-


From: Oleh Krehel
Subject: [elpa] master 0a9780b 046/272: ivy.el (ivy--recompute-index): Update cl-position logic
Date: Mon, 25 Apr 2016 10:13:15 +0000

branch: master
commit 0a9780baf74a545419c3d4d6c4e82d0691f24d5c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy--recompute-index): Update cl-position logic
    
    Re #207
---
 ivy.el |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ivy.el b/ivy.el
index 553f1a5..f48459f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1964,10 +1964,10 @@ Prefix matches to NAME are put ahead of the list."
     (unless (eq this-command 'ivy-resume)
       (setq ivy--index
             (or
-             (cl-position (if (and (> (length re-str) 0)
-                                   (eq ?^ (aref re-str 0)))
-                              (substring re-str 1)
-                            re-str) cands
+             (cl-position (if (and (> (length name) 0)
+                                   (eq ?^ (aref name 0)))
+                              (substring name 1)
+                            name) cands
                             :test #'equal)
              (and ivy--directory
                   (cl-position



reply via email to

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