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

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

[elpa] master 389cebc 06/34: Looks back instead of re-search-backward


From: Vitalie Spinu
Subject: [elpa] master 389cebc 06/34: Looks back instead of re-search-backward
Date: Tue, 7 May 2019 16:05:25 -0400 (EDT)

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

    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)



reply via email to

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