auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex a6121fb 13/34: Fix fontification


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex a6121fb 13/34: Fix fontification when $ is unclosed in buffer
Date: Sun, 6 Jun 2021 11:40:02 -0400 (EDT)

branch: externals/auctex
commit a6121fb7356cc4c9398b2be6534007d3c5a84518
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Fix fontification when $ is unclosed in buffer
    
    * font-latex.el (font-latex-match-dollar-math): Ensure that limit
    passed to `font-latex-find-dollar-math' doesn't exceed end of buffer.
---
 font-latex.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/font-latex.el b/font-latex.el
index ee2b99f..2b03783 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1876,7 +1876,8 @@ The \\begin{equation} incl. arguments in the same line and
                 (font-latex-find-dollar-math
                  ;; Hope that limit+font-latex-multiline-boundary
                  ;; doesn't fall just inside single "$$".
-                 (+ limit font-latex-multiline-boundary) num)
+                 (min (point-max) (+ limit font-latex-multiline-boundary))
+                 num)
                 ;; Found.
                 (progn
                   (forward-char num)




reply via email to

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