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

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

[elpa] master 63e714c 130/167: Allow access to TRAMP from "// C-j"


From: Oleh Krehel
Subject: [elpa] master 63e714c 130/167: Allow access to TRAMP from "// C-j"
Date: Tue, 08 Dec 2015 10:50:30 +0000

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

    Allow access to TRAMP from "// C-j"
    
    * ivy.el (ivy-alt-done): Match not only `ivy-text' but also
      `ivy--current' for TRAMP regex.
    
    Re #285
---
 ivy.el |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ivy.el b/ivy.el
index 01baeab..4ba8cff 100644
--- a/ivy.el
+++ b/ivy.el
@@ -435,9 +435,13 @@ When ARG is t, exit with current text, ignoring the 
candidates."
            (ivy-done))
           ((and ivy--directory
                 (or (and (equal ivy--directory "/")
-                         (string-match
-                          "\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'"
-                          ivy-text))
+                         (cond ((string-match
+                                 
"\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'"
+                                 ivy-text))
+                               ((string-match
+                                 
"\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'"
+                                 ivy--current)
+                                (setq ivy-text ivy--current))))
                     (string-match
                      "\\`/\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'"
                      ivy-text)))



reply via email to

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