summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-31 08:10:09 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-31 08:10:09 +0200
commit26e2212a96994b2167be748a94ea55b239f7df66 (patch)
tree7a03d8999cabd8e32284d1019e1dedb1e39ed61d /helm.el
parent5fafff502e182e5c87a80d061c1f7cfcd0956cb9 (diff)
Ensure to get helm-sources from helm-buffer when resuming
This fix resuming from *occur. * helm.el (helm-funcall-foreach): Do it.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helm.el b/helm.el
index bfe1bccd..7234141a 100644
--- a/helm.el
+++ b/helm.el
@@ -1992,7 +1992,8 @@ Return the result of last function call."
(defun helm-funcall-foreach (sym &optional sources)
"Call the associated function(s) to SYM for each source if any."
(let ((sources (or (helm-get-sources sources)
- helm-sources)))
+ ;; `helm-sources' are local to helm-buffer.
+ (with-helm-buffer helm-sources))))
(cl-dolist (source sources)
(helm-aif (assoc-default sym source)
(helm-funcall-with-source source it)))))