branch: master
commit 9a98799e3926ca08ef3e061eb83b194454145086
Author: Yuri D. Lensky <[email protected]>
Commit: Yuri D. Lensky <[email protected]>
Fix completion of relative directories.
Before this fix, a directory "~/d/", at least on Windows, gets
completed to "d/" if default-directory is "~/", whereas it should be
completed to "~/d/" for completion to continue to work properly.
---
ivy.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index ce118d1..9757068 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2353,7 +2353,7 @@ Possible choices are
'ivy-magic-slash-non-match-cd-selected,
((and (file-exists-p ivy-text)
(not (string= ivy-text "/"))
(file-directory-p ivy-text))
- (ivy--cd ivy-text))
+ (ivy--cd (expand-file-name ivy-text)))
((and (or (> ivy--index 0)
(= ivy--length 1)
(not (string= ivy-text "/")))