diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-09-11 11:56:07 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-09-11 11:56:07 +0200 |
commit | 94785c74a1f54fad6d4469cbf98ab9a81085f347 (patch) | |
tree | 84f5219b1052826a0805dfa21b562d4e5f9953cf /helm-files.el | |
parent | 1e442b284ba362184bc99d0c02793091eabc8c93 (diff) |
Don't expand filename on /host:.
* helm-files.el (helm-ff-set-pattern): Do it.
Diffstat (limited to 'helm-files.el')
-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) |