summaryrefslogtreecommitdiff
path: root/helm-dabbrev.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-19 05:15:07 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-19 05:15:07 +0200
commitc19a3fa4adf193742c25c4929b2305d3a972e9a8 (patch)
tree5b2f5f7557d6e34aca127f18e3c3cfe3d6a2b187 /helm-dabbrev.el
parent90dc01d208383ce49d443c7a9b3d904068509893 (diff)
regexp-quote pattern in dabbrev
* helm-dabbrev.el (helm-dabbrev--collect): Do it.
Diffstat (limited to 'helm-dabbrev.el')
-rw-r--r--helm-dabbrev.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-dabbrev.el b/helm-dabbrev.el
index 476a97f5..ebbd8ef3 100644
--- a/helm-dabbrev.el
+++ b/helm-dabbrev.el
@@ -162,7 +162,8 @@ but the initial search for all candidates in buffer(s)."
(concat "\\("
helm-dabbrev--regexp
"\\)"
- "\\(?99:\\(" pattern
+ "\\(?99:\\("
+ (regexp-quote pattern)
"\\(\\sw\\|\\s_\\)+\\)\\)")
(point-at-eol) t)
(replace-regexp-in-string