diff options
-rw-r--r-- | helm-files.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/helm-files.el b/helm-files.el index 567b53b1..88981edd 100644 --- a/helm-files.el +++ b/helm-files.el @@ -1768,13 +1768,12 @@ purpose." (match-string 0 pattern))) (replace-match tramp-name nil t pattern)) ;; Match "/hostname:" - ((and (string-match helm-tramp-file-name-regexp pattern) + ((and (string-match helm-tramp-file-name-regexp pattern) postfixed (setq cur-method (match-string 1 pattern)) (and cur-method (not (member cur-method methods)))) - (setq tramp-name (expand-file-name - (helm-create-tramp-name - (match-string 0 pattern)))) + (setq tramp-name (helm-create-tramp-name + (match-string 0 pattern))) (replace-match tramp-name nil t pattern)) ;; Match "/method:" in this case don't try to connect. ((and (null postfixed) |