Permalink
Browse files

* helm-files.el (helm-ff-transform-fname-for-completion): Compute tra…

…mp-methods only when hdd is "/".
  • Loading branch information...
1 parent bb979e3 commit 08c97f3597f040b9516da5ef1c2763a16685572f @thierryvolpiatto thierryvolpiatto committed Nov 26, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 helm-files.el
View
@@ -1404,10 +1404,11 @@ If FNAME is a valid directory name,return FNAME unchanged."
(string-match "/$" fname) ; Allow mkdir.
(file-directory-p fname)
(string-match helm-ff-url-regexp fname)
- (loop for i in (mapcar #'(lambda (x)
- (concat "/" (car x)))
- tramp-methods)
- thereis (string-match fname i)))
+ (and (string= helm-ff-default-directory "/")
+ (loop for i in (mapcar #'(lambda (x)
+ (concat "/" (car x)))
+ tramp-methods)
+ thereis (string-match fname i))))
;; Don't treat wildcards ("*") as regexp char.
;; (e.g ./foo/*.el => ./foo/[*].el)
(replace-regexp-in-string "[*]" "[*]" fname)

0 comments on commit 08c97f3

Please sign in to comment.