summaryrefslogtreecommitdiff
path: root/helm-dabbrev.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-18 22:48:01 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-18 22:48:01 +0200
commit657ca4d6c32e391bd37a237ac1a08881ff8aaa6a (patch)
tree8dbe079f45eb4bcb61db165fe828188676964f9d /helm-dabbrev.el
parent5d787060c233d91d479199f059a0322a9029c1ff (diff)
Remove separator in match
* 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 9f1e2141..89f72adc 100644
--- a/helm-dabbrev.el
+++ b/helm-dabbrev.el
@@ -161,7 +161,8 @@ but the initial search for all candidates in buffer(s)."
(concat "\\(" helm-dabbrev--regexp "\\)"
"\\(?99:\\(" pattern "\\(\\sw\\|\\s_\\)+\\)\\)")
(point-at-eol) t)
- (match-string-no-properties 99)))))
+ (replace-regexp-in-string
+ replace-regexp "" (match-string-no-properties 99))))))
(unless (member match-word result)
(push match-word result)))))))
(cl-loop for buf in (if all (helm-dabbrev--buffer-list)