summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2012-11-04 19:45:59 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2012-11-04 19:45:59 +0100
commitf4858cd767e6b7c98a39a1a96fcbf90c3355277c (patch)
treeea2e2697b73f01b1b29786a37cbcc193457f2961
parent32483b971bcb736ffd02ef19183bf8b6ae76a75a (diff)
* helm.el (helm-execute-selection-action): Fix position in `helm-current-buffer' before executing action.
-rw-r--r--helm.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/helm.el b/helm.el
index 9d08f067..f4753342 100644
--- a/helm.el
+++ b/helm.el
@@ -2308,6 +2308,9 @@ STRING is the output of PROCESS."
(defun helm-execute-selection-action ()
"Execute current action and kill the action buffer if present."
(helm-log-run-hook 'helm-before-action-hook)
+ ;; Position can be different when `helm-current-buffer'
+ ;; is splitted, so jump to this position before executing action.
+ (helm-current-position 'restore)
(unwind-protect
(helm-execute-selection-action-1)
(helm-aif (get-buffer helm-action-buffer)