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

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

[elpa] master ecb93a6 18/90: Regexp-quote name of candidate buffer to be


From: Oleh Krehel
Subject: [elpa] master ecb93a6 18/90: Regexp-quote name of candidate buffer to be preselected
Date: Tue, 30 Jun 2015 07:28:08 +0000

branch: master
commit ecb93a6b1007e6624f5bc4597dfc62458f6ff01b
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    Regexp-quote name of candidate buffer to be preselected
    
    Fixes #128
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 193dd09..15ced91 100644
--- a/ivy.el
+++ b/ivy.el
@@ -713,7 +713,7 @@ candidates with each input."
               (setq coll (cl-sort (copy-sequence coll) sort-fn))))))
     (when preselect
       (unless (or require-match
-                  (let ((re (format "\\`%s" preselect)))
+                  (let ((re (format "\\`%s" (regexp-quote preselect))))
                     (cl-find-if (lambda (x) (string-match re x))
                                 coll)))
         (setq coll (cons preselect coll))))



reply via email to

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