emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 4a16a55 090/173: company-dabbrev--make-regexp: Regexp can


From: Dmitry Gutov
Subject: [elpa] master 4a16a55 090/173: company-dabbrev--make-regexp: Regexp can match non-word characters
Date: Thu, 23 Jun 2016 00:28:40 +0000 (UTC)

branch: master
commit 4a16a55dc9e48f1e8198b1d22456c841c9abcaed
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    company-dabbrev--make-regexp: Regexp can match non-word characters
    
    Refs #433
---
 company-dabbrev.el |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/company-dabbrev.el b/company-dabbrev.el
index 34acffe..337943d 100644
--- a/company-dabbrev.el
+++ b/company-dabbrev.el
@@ -92,10 +92,10 @@ This variable affects both `company-dabbrev' and 
`company-dabbrev-code'."
               (throw 'done 'company-time-out))))))
 
 (defun company-dabbrev--make-regexp (prefix)
-  (concat "\\<" (if (equal prefix "")
-                    (concat "\\(?:" company-dabbrev-char-regexp "\\)")
-                  (regexp-quote prefix))
-          "\\(?:" company-dabbrev-char-regexp "\\)*\\>"))
+  (concat (if (equal prefix "")
+              (concat "\\(?:" company-dabbrev-char-regexp "\\)")
+            (regexp-quote prefix))
+          "\\(?:" company-dabbrev-char-regexp "\\)*"))
 
 (defun company-dabbrev--search-buffer (regexp pos symbols start limit
                                        ignore-comments)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]