branch: externals/ivy-hydra
commit c84bc31e214919162f807d289226d4f171bad403
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--magic-file-slash): Use "///" instead of "//" on Windows
Fixes #773
---
ivy.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/ivy.el b/ivy.el
index bcfae36..2bae71e 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3219,6 +3219,7 @@ Possible choices are
'ivy-magic-slash-non-match-cd-selected,
(magic (not (string= ivy-text "/"))))
(cond ((member ivy-text ivy--all-candidates)
(ivy--cd canonical))
+ ((and (eq system-type 'windows-nt) (string= ivy-text "//")))
((string-match-p "//\\'" ivy-text)
(ivy--cd
(ivy--magic-file-doubleslash-directory)))