branch: master commit 389cebc263eff25459d7c0ffb64a59325036d30e Author: Vitalie Spinu <spinu...@gmail.com> Commit: Vitalie Spinu <spinu...@gmail.com>
Looks back instead of re-search-backward --- company-math.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/company-math.el b/company-math.el index ea551a6..b4e4c39 100644 --- a/company-math.el +++ b/company-math.el @@ -99,7 +99,7 @@ corresponding unicode symbol." (memq face allow-faces))))) (when insertp (save-excursion - (when (re-search-backward company-math-prefix-regexp (point-at-bol) 'no-error) + (when (looking-back company-math-prefix-regexp (point-at-bol)) (match-string 1)))))) (defun company-math--substitute-unicode (symbol)