branch: elpa/helm
commit ae8721ca331a10a3ce3a8d86570108f11709381b
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Fix #2530 by resetting helm-pattern when exiting/quitting
---
helm-core.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/helm-core.el b/helm-core.el
index 03d176fce5..cbdb3405c9 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -4104,6 +4104,10 @@ WARNING: Do not use this mode yourself, it is internal
to Helm."
;; `helm-set-local-variable'.
(setq helm--force-updating-p nil)
(setq helm--buffer-in-new-frame-p nil)
+ ;; Reset helm-pattern so that value of previous session doesn't
+ ;; interfere with next session (bug#2530).
+ (setq helm-pattern ""
+ helm-input "")
;; This is needed in some cases where last input
;; is yielded infinitely in minibuffer after helm session.
(helm-clean-up-minibuffer))