diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-09-12 20:18:18 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-09-12 20:18:18 +0200 |
commit | 25dc6837508ee648294d9e5fd9b87b95ecc763e6 (patch) | |
tree | 4d020028290b7cc09141cb70deb09741995ca96f /helm-files.el | |
parent | 7925a7a280fd8e8bf91ffb083cfff4ad3dcf1f86 (diff) |
Ensure file-directory-p is not called on an incomplete tramp path.
* helm-files.el (helm-find-files-get-candidates): Do it.
Diffstat (limited to 'helm-files.el')
-rw-r--r-- | helm-files.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helm-files.el b/helm-files.el index 88981edd..3827d4b1 100644 --- a/helm-files.el +++ b/helm-files.el @@ -1801,6 +1801,9 @@ purpose." (string= path "Invalid tramp file name") ;; An empty pattern (string= path "") + (and (string-match-p ":\\'" path) + (helm-ff-tramp-postfixed-p + path (mapcar 'car tramp-methods))) ;; Check if base directory of PATH is valid. (helm-aif (file-name-directory path) ;; If PATH is a valid directory IT=PATH, |