branch: elpa/helm
commit f1930b14866586112434c18c8049caadf2f8a286
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Fix helm-current-buffer when resuming
---
helm-core.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/helm-core.el b/helm-core.el
index dad3c412d9..932846d05e 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -3105,9 +3105,9 @@ buffers (sessions). When calling from Lisp, specify a
'default-directory (get-buffer buffer)))
(setq helm-saved-selection nil
helm-saved-action nil)
- (unless (buffer-live-p helm-current-buffer)
- ;; `helm-current-buffer' may have been killed.
- (setq helm-current-buffer (current-buffer)))
+ ;; Always resume from current-buffer, if a source needs to resume from a
+ ;; specific buffer it should be specified from this source, not here.
+ (setq helm-current-buffer (current-buffer))
(helm-aif (with-current-buffer buffer
helm--current-buffer-narrowed)
(progn