diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-11-01 07:55:14 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-11-01 07:55:14 +0100 |
commit | 81742cabc512e1917bf40eef770d636508015c74 (patch) | |
tree | d8b4350fbd41fc888332be01ad43742ec1dad1f4 /helm-buffers.el | |
parent | 8d31d968e5503d3bf1de93df4799d9fe3fdbdc82 (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.el | 5 |
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'. |