[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 1855ee17c0 1/2: No need to reset pattern in cleanup
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 1855ee17c0 1/2: No need to reset pattern in cleanup |
Date: |
Wed, 31 Aug 2022 17:58:35 -0400 (EDT) |
branch: elpa/helm
commit 1855ee17c0b3db18bbc9a329c91ce8fa27e825e5
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
No need to reset pattern in cleanup
This fix several issues with old code not using helm-last-query.
---
helm-core.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/helm-core.el b/helm-core.el
index ee6a5b1196..c5f1ea700b 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -4143,12 +4143,9 @@ 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), however store last value
- ;; of helm-pattern in `helm-last-query'.
- (setq helm-last-query helm-pattern
- helm-pattern ""
- helm-input "")
+ ;; No need to reinitialize helm-pattern here now it is done only
+ ;; once in init function bug#2530.
+ (setq helm-last-query helm-pattern)
;; This is needed in some cases where last input
;; is yielded infinitely in minibuffer after helm session.
(helm-clean-up-minibuffer))