branch: elpa/helm
commit 5f8ba191b01c3a113acfe5df003fdd3152f1770f
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Keep the underlying helm-current-buffer for subsequent actions
    
    When starting a new helm action from helm, the helm-current-buffer may
    become either the previous helm-buffer or the *helm marked* buffer
    which is wrong.
---
 helm-core.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-core.el b/helm-core.el
index a558418c110..bac33ac6d29 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -2645,7 +2645,9 @@ i.e. functions called with RET."
   ;; When toggling minibuffer and header-line, we want next action
   ;; inherit this setting.
   (helm-set-local-variable 'helm-echo-input-in-header-line
-                           (with-helm-buffer helm-echo-input-in-header-line))
+                           (with-helm-buffer helm-echo-input-in-header-line)
+                           'helm-current-buffer
+                           (with-helm-buffer helm-current-buffer))
   ;; Ensure next action use same display function as initial helm-buffer when
   ;; helm-actions-inherit-frame-settings is non nil.
   (when (and helm-actions-inherit-frame-settings

Reply via email to