summaryrefslogtreecommitdiff
path: root/helm-grep.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2020-05-10 15:41:31 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2020-05-10 15:41:31 +0200
commit59deedd6596a1e4178a176da6072e414bed8d7ee (patch)
tree3ad8cbd45248edaefb3649ac623ef50bc299db89 /helm-grep.el
parente4a96c334dd497f12c672a98b2ca51648b4bc7f3 (diff)
Use username in tramp file names (#2301)
Thanks @Ronievron. * helm-grep.el (helm-grep-action): Do it.
Diffstat (limited to 'helm-grep.el')
-rw-r--r--helm-grep.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/helm-grep.el b/helm-grep.el
index 43b491e3..c863c351 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -615,15 +615,15 @@ WHERE can be one of other-window, other-frame."
(if (eq major-mode 'helm-grep-mode)
(current-buffer)
helm-buffer)
- (get-text-property (point-at-bol) 'helm-grep-fname))
+ (get-text-property (point-at-bol)
+ 'helm-grep-fname))
(car split)))
- (tramp-method (file-remote-p (or helm-ff-default-directory
- default-directory) 'method))
- (tramp-host (file-remote-p (or helm-ff-default-directory
- default-directory) 'host))
- (tramp-prefix (concat "/" tramp-method ":" tramp-host ":"))
- (fname (if tramp-host
- (concat tramp-prefix loc-fname) loc-fname)))
+ (tramp-fname (file-remote-p (or helm-ff-default-directory
+ default-directory)))
+ (fname (if tramp-fname
+ (concat tramp-fname loc-fname)
+ loc-fname)))
+ (helm-log "helm-grep-action fname: %s" fname )
(cl-case where
(other-window (helm-window-show-buffers
(list (find-file-noselect fname)) t))