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

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

[elpa] master 7ed5b06 119/272: ivy.el (ivy--preselect-index): Don't use


From: Oleh Krehel
Subject: [elpa] master 7ed5b06 119/272: ivy.el (ivy--preselect-index): Don't use regexp-quote
Date: Mon, 25 Apr 2016 10:13:20 +0000

branch: master
commit 7ed5b06b3ad555401484a0b630fcf2883f8204b2
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy--preselect-index): Don't use regexp-quote
    
    I don't remember why `regexp-quote' was needed in the first place.  But
    it's useful to have it as a regex at least for `lispy--occur-preselet'
    which returns things like "^42" to preselect line 42.
---
 ivy.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 6c3f522..5630f1b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1592,7 +1592,7 @@ Minibuffer bindings:
          preselect)
         ((cl-position preselect candidates :test #'equal))
         ((stringp preselect)
-         (let ((re (regexp-quote preselect)))
+         (let ((re preselect))
            (cl-position-if
             (lambda (x)
               (string-match re x))



reply via email to

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