branch: elpa/helm
commit f1f4a43c6edbe2a57547b2eb3783d78ab9e7bdf8
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@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