]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix non-file completions ability to enter tramp completion
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 19 Jun 2015 12:02:59 +0000 (14:02 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 19 Jun 2015 12:02:59 +0000 (14:02 +0200)
* ivy.el (ivy-alt-done): Update.

Re #145

ivy.el

diff --git a/ivy.el b/ivy.el
index 08b6528f417a344af68c3df35b6fc5e360b836e1..bf399c137294cdcf0b710772405c41aff54bf237 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -295,7 +295,7 @@ When ARG is t, exit with current text, ignoring the candidates."
                                        (expand-file-name x ivy--directory)
                                        "Top"))))
                (ivy-done)))
-            ((string-match "\\`/\\([^/]+?\\):\\(?:\\(.*\\)@\\)?" ivy-text)
+            ((and ivy--directory (string-match "\\`/\\([^/]+?\\):\\(?:\\(.*\\)@\\)?" ivy-text))
              (let ((method (match-string 1 ivy-text))
                    (user (match-string 2 ivy-text))
                    res)