summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-10-23 21:00:56 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-10-23 21:00:56 +0200
commit5ac46e43f4247ca6f1a053b8874fcefd9ecff674 (patch)
treeaa034e2d60ad350c64875fea71256ff7bd3a35b5
parentbeefa58f1afea45938e9dba4edaf61e42bf7a638 (diff)
Ensure to set yank point in right buffer.
* helm-utils.el (helm-goto-line): Do it.
-rw-r--r--helm-utils.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-utils.el b/helm-utils.el
index cec72b4a..c8adcc49 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -267,7 +267,8 @@ Default is `helm-current-buffer'."
Animation is used unless NOANIM is non--nil."
(helm-log-run-hook 'helm-goto-line-before-hook)
(helm-match-line-cleanup)
- (unless helm-yank-point (setq helm-yank-point (point)))
+ (with-helm-current-buffer
+ (unless helm-yank-point (setq helm-yank-point (point))))
(goto-char (point-min))
(helm-goto-char (point-at-bol lineno))
(unless noanim