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

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

[elpa] master 8630048 47/57: Fixed ivy--preselect-index on windows where


From: Oleh Krehel
Subject: [elpa] master 8630048 47/57: Fixed ivy--preselect-index on windows where the drives folders ends with a backslash (C:\, D:\)
Date: Tue, 19 May 2015 14:21:39 +0000

branch: master
commit 8630048e1ceb9858db64fd372eace1edd00ef549
Author: __rompy <address@hidden>
Commit: __rompy <address@hidden>

    Fixed ivy--preselect-index on windows where the drives folders ends with a 
backslash (C:\, D:\)
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index c0bbedb..0b38f2d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -784,7 +784,7 @@ Minibuffer bindings:
   (or (cl-position preselect candidates :test 'equal)
       (cl-position-if
        (lambda (x)
-         (string-match preselect x))
+         (string-match (regexp-quote preselect) x))
        candidates)))
 
 ;;* Implementation



reply via email to

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