branch: master
commit dfd62048159b388eb09b4889dfaa45eb1d47e0a4
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Fix pasting file paths on Windows
* ivy.el (ivy--exhibit): Update.
Fixes #272
---
ivy.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index 3c0f229..e4c0cee 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1496,7 +1496,7 @@ Should be run via minibuffer `post-command-hook'."
(string-match "\\`[[:alpha:]]:/"
default-directory))
(ivy--cd (match-string 0 default-directory))
(ivy--cd "/")))
- (when (string-match "[[:alpha:]]:/" ivy-text)
+ (when (string-match "[[:alpha:]]:/$" ivy-text)
(let ((drive-root (match-string 0 ivy-text)))
(when (file-exists-p drive-root)
(ivy--cd drive-root)))))