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

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

[elpa] master a8a98e3 24/34: [Fix #11] Don't require at least one charac


From: Vitalie Spinu
Subject: [elpa] master a8a98e3 24/34: [Fix #11] Don't require at least one character in prefix regexp
Date: Tue, 7 May 2019 16:05:29 -0400 (EDT)

branch: master
commit a8a98e3e6711878fd03e8d61111964f49925f456
Author: Vitalie Spinu <address@hidden>
Commit: Vitalie Spinu <address@hidden>

    [Fix #11] Don't require at least one character in prefix regexp
---
 company-math.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/company-math.el b/company-math.el
index faa9bc9..0083870 100644
--- a/company-math.el
+++ b/company-math.el
@@ -65,7 +65,7 @@ It will also work after `company-math-symbol-prefix'."
 (let ((psym (regexp-quote company-math-symbol-prefix))
       (psub (regexp-quote company-math-subscript-prefix))
       (psup (regexp-quote company-math-superscript-prefix)))
-  (setq company-math--unicode-prefix-regexp (concat "\\(" psym "\\|" psub 
"\\|" psup "\\)[^ \t\n]+")))
+  (defvar company-math--unicode-prefix-regexp (concat "\\(" psym "\\|" psub 
"\\|" psup "\\)[^ \t\n]*")))
 
 (defcustom company-math-allow-unicode-symbols-in-faces t
   "List of faces to allow the insertion of Unicode symbols.



reply via email to

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