summaryrefslogtreecommitdiff
path: root/helm-semantic.el
diff options
context:
space:
mode:
authorLe Wang <l26wang@gmail.com>2017-06-16 09:16:50 -0400
committerLe Wang <l26wang@gmail.com>2017-06-16 09:16:50 -0400
commitf77f5eac6b38bee055dbb60855ad568f00c77238 (patch)
treeb23ea8b8ce50f978c14a5daeca5a164f94de1625 /helm-semantic.el
parent9fe689546b80d00fc8ccc11168018da01668382e (diff)
can't regexp-quote nil
Diffstat (limited to 'helm-semantic.el')
-rw-r--r--helm-semantic.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-semantic.el b/helm-semantic.el
index c6ba9518..9f4720cb 100644
--- a/helm-semantic.el
+++ b/helm-semantic.el
@@ -208,7 +208,7 @@ Fill in the symbol at point by default."
(format "\\_<%s\\_>" (car (semantic-current-tag))))))
(helm :sources source
:candidate-number-limit 9999
- :default (and imenu-p (list (concat "\\_<" (regexp-quote str) "\\_>") str))
+ :default (and imenu-p (list (concat "\\_<" (and str (regexp-quote str)) "\\_>") str))
:preselect (if (or arg imenu-p) str tag)
:buffer "*helm semantic/imenu*")))