branch: elpa/helm
commit 8cdc5f3644bce5093dbb84519ba9dbbec17222d4
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Call helm-M-x--unwind-forms only in command-help category
---
 helm-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helm-mode.el b/helm-mode.el
index b4f5c0c9dd..04b889adc5 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -1606,7 +1606,7 @@ dynamically otherwise use 
`helm-completing-read-default-2'."
               :initial-input initial-input)
            (when pref-arg
              (advice-add 'command-execute :around 
#'helm--advice-command-execute)))
-      (helm-M-x--unwind-forms)
+      (when pref-arg (helm-M-x--unwind-forms))
       (dolist (f flags) (set f nil)))))
 
 (defun helm--advice-command-execute (old--fn &rest args)

Reply via email to