Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…mp-methods only when hdd is "/".
  • Loading branch information...
commit 08c97f3597f040b9516da5ef1c2763a16685572f 1 parent bb979e3
@thierryvolpiatto thierryvolpiatto authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 helm-files.el
View
9 helm-files.el
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.