]> code.delx.au - gnu-emacs-elpa/commitdiff
company-dabbrev--make-regexp: Regexp can match non-word characters
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 19 Dec 2015 15:45:53 +0000 (17:45 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 19 Dec 2015 16:20:51 +0000 (18:20 +0200)
Refs #433

company-dabbrev.el

index 34acffe5d9667fc254c0397487e09ff4d1f5e344..337943d42b395dbb3c4b7ed41288496691c1b6a1 100644 (file)
@@ -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)