branch: master
commit 07212d90c3cdfe4dbbe78301115a7647573a215c
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--magic-file-slash): Fix regression
Fixes #1027
---
ivy.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 2c54300..750def1 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2316,8 +2316,9 @@ Possible choices are
'ivy-magic-slash-non-match-cd-selected,
(ivy--cd dir))
(defun ivy--magic-file-slash ()
- (when (and (eq this-command 'self-insert-command)
- (eolp))
+ (when (or (and (eq this-command 'self-insert-command)
+ (eolp))
+ (eq this-command 'ivy-partial-or-done))
(cond ((member ivy-text ivy--all-candidates)
(ivy--cd (expand-file-name ivy-text ivy--directory)))
((string-match "//\\'" ivy-text)