emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master c322613 240/348: ivy.el (ivy--magic-file-slash): Fix pasti


From: Oleh Krehel
Subject: [elpa] master c322613 240/348: ivy.el (ivy--magic-file-slash): Fix pasting "/etc/"
Date: Sat, 8 Apr 2017 11:04:05 -0400 (EDT)

branch: master
commit c3226138c14373f52039835411ebc31cfd68de5c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy--magic-file-slash): Fix pasting "/etc/"
---
 ivy.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ivy.el b/ivy.el
index 431771b..e940227 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2224,6 +2224,10 @@ If SUBEXP is nil, the text properties are applied to the 
whole match."
          (let ((drive-root (match-string 0 ivy-text)))
            (when (file-exists-p drive-root)
              (ivy--cd drive-root))))
+        ((and (file-exists-p ivy-text)
+              (not (string= ivy-text "/"))
+              (file-directory-p ivy-text))
+         (ivy--cd ivy-text))
         ((and (or (> ivy--index 0)
                   (= ivy--length 1)
                   (not (string= ivy-text "/")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]