Permalink
Browse files

* helm-files.el (helm-ff-move-to-first-real-candidate): match tramp r…

…egexp instead using file-remote-p.
  • Loading branch information...
thierryvolpiatto committed Mar 28, 2013
1 parent 9521b78 commit 58dfea8451e25f26df0a4f2b65920ce2111d68cb
Showing with 3 additions and 3 deletions.
  1. +3 −3 helm-files.el
View
@@ -1127,10 +1127,10 @@ or hitting C-z on \"..\"."
(defun helm-ff-move-to-first-real-candidate ()
"When candidate is an incomplete file name move to first real candidate."
- (let ((cand (helm-get-selection)))
+ (helm-aif (helm-get-selection)
(when (and (helm-file-completion-source-p)
- (not (file-remote-p cand))
- (not (file-exists-p cand)))
+ (not (string-match tramp-file-name-regexp it))
+ (not (file-exists-p it)))
(helm-next-line))))
(add-hook 'helm-after-update-hook 'helm-ff-move-to-first-real-candidate)

0 comments on commit 58dfea8

Please sign in to comment.