branch: master commit 46695ac4909659ed29f0cc5adc69fce54dc3bd80 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Fix non-file completions ability to enter tramp completion * ivy.el (ivy-alt-done): Update. Re #145 --- ivy.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ivy.el b/ivy.el index 08b6528..bf399c1 100644 --- 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)