branch: master
commit 8630048e1ceb9858db64fd372eace1edd00ef549
Author: __rompy <[email protected]>
Commit: __rompy <[email protected]>
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