emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/helm f1f4a43c6e 3/4: Prevent setting helm-pattern to nil


From: ELPA Syncer
Subject: [nongnu] elpa/helm f1f4a43c6e 3/4: Prevent setting helm-pattern to nil
Date: Wed, 24 Aug 2022 03:58:45 -0400 (EDT)

branch: elpa/helm
commit f1f4a43c6edbe2a57547b2eb3783d78ab9e7bdf8
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Prevent setting helm-pattern to nil
---
 helm-core.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/helm-core.el b/helm-core.el
index 6d1b10e225..41b74d901c 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -3712,9 +3712,13 @@ For RESUME INPUT DEFAULT and SOURCES see `helm'."
                ;; helm-input is initialized to "".
                helm-input ""))
         (helm-maybe-use-default-as-input
-         (setq helm-pattern (with-helm-current-buffer
-                              (thing-at-point 'symbol))
-               helm-input "")))
+         (setq helm-pattern (or (with-helm-current-buffer
+                                  (thing-at-point 'symbol))
+                                "")
+               helm-input ""))
+        (t
+         (setq helm-pattern ""
+               helm-input   "")))
   (helm--fuzzy-match-maybe-set-pattern)
   ;; Call the init function for sources where appropriate
   (helm-compute-attr-in-sources 'init sources)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]