diff options
author | Le Wang <l26wang@gmail.com> | 2017-06-16 09:16:50 -0400 |
---|---|---|
committer | Le Wang <l26wang@gmail.com> | 2017-06-16 09:16:50 -0400 |
commit | f77f5eac6b38bee055dbb60855ad568f00c77238 (patch) | |
tree | b23ea8b8ce50f978c14a5daeca5a164f94de1625 /helm-imenu.el | |
parent | 9fe689546b80d00fc8ccc11168018da01668382e (diff) |
can't regexp-quote nil
Diffstat (limited to 'helm-imenu.el')
-rw-r--r-- | helm-imenu.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-imenu.el b/helm-imenu.el index b7f6a10d..39dfc41b 100644 --- a/helm-imenu.el +++ b/helm-imenu.el @@ -305,7 +305,7 @@ Each car is a regexp match pattern of the imenu type string." (helm-execute-action-at-once-if-one helm-imenu-execute-action-at-once-if-one)) (helm :sources 'helm-source-imenu - :default (list (concat "\\_<" (regexp-quote str) "\\_>") str) + :default (list (concat "\\_<" (and str (regexp-quote str)) "\\_>") str) :preselect str :buffer "*helm imenu*"))) @@ -338,7 +338,7 @@ or it have an association in `helm-imenu-all-buffer-assoc'." (helm-imenu-candidates-in-all-buffers 'build-sources) '(helm-source-imenu-all)))) (helm :sources sources - :default (list (concat "\\_<" (regexp-quote str) "\\_>") str) + :default (list (concat "\\_<" (and str (regexp-quote str)) "\\_>") str) :preselect (unless helm--maybe-use-default-as-input str) :buffer "*helm imenu all*"))) |