summaryrefslogtreecommitdiff
path: root/helm-buffers.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-11-01 07:55:14 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-11-01 07:55:14 +0100
commit81742cabc512e1917bf40eef770d636508015c74 (patch)
treed8b4350fbd41fc888332be01ad43742ec1dad1f4 /helm-buffers.el
parent8d31d968e5503d3bf1de93df4799d9fe3fdbdc82 (diff)
Toggle between helm-current-buffer and selection on PA (#1253).
* helm-buffers.el (helm-buffers-list-persistent-action): Do it.
Diffstat (limited to 'helm-buffers.el')
-rw-r--r--helm-buffers.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/helm-buffers.el b/helm-buffers.el
index e768d6b4..a35dc0a9 100644
--- a/helm-buffers.el
+++ b/helm-buffers.el
@@ -756,7 +756,10 @@ If REGEXP-FLAG is given use `query-replace-regexp'."
(defun helm-buffers-list-persistent-action (candidate)
(if current-prefix-arg
(helm-buffers-persistent-kill candidate)
- (switch-to-buffer candidate)))
+ (if (eql (window-buffer helm-persistent-action-display-window)
+ (get-buffer helm-current-buffer))
+ (switch-to-buffer candidate)
+ (switch-to-buffer helm-current-buffer))))
(defun helm-ediff-marked-buffers (_candidate &optional merge)
"Ediff 2 marked buffers or CANDIDATE and `helm-current-buffer'.