diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-04-01 07:09:14 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-04-01 07:09:14 +0200 |
commit | 6815ff7ce5a50741f070f77e68c49ff19cfc42da (patch) | |
tree | 958b4a71751cdbda41d7524f31c80aa5c03ecd40 /helm-buffers.el | |
parent | 645728ed42e83672c192cf6d1e054f8a887361f2 (diff) |
Fix preselection of remote buffers
* helm-buffers.el (helm-buffer--get-preselection): Do it.
(helm-buffers-persistent-kill-1): Do it.
Diffstat (limited to 'helm-buffers.el')
-rw-r--r-- | helm-buffers.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helm-buffers.el b/helm-buffers.el index 39aa42a2..13bf81f0 100644 --- a/helm-buffers.el +++ b/helm-buffers.el @@ -462,6 +462,10 @@ Should be called after others transformers i.e (boring buffers)." (defun helm-buffer--get-preselection (buffer) (let ((bufname (buffer-name buffer))) + (when (and bufname + (file-remote-p (with-current-buffer bufname + default-directory))) + (setq bufname (concat "@ " (helm-url-unhex-string bufname)))) (concat "^" (if (and (null helm-buffer-details-flag) (numberp helm-buffer-max-length) @@ -852,6 +856,10 @@ If a prefix arg is given split windows vertically." (defun helm-buffers--quote-truncated-buffer (buffer) (let ((bufname (and (bufferp buffer) (buffer-name buffer)))) + (when (and bufname + (file-remote-p (with-current-buffer bufname + default-directory))) + (setq bufname (concat "@ " (helm-url-unhex-string bufname)))) (when bufname (regexp-quote (if (and helm-buffer-max-length |