auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. a6121fb7356cc4c9398b2


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. a6121fb7356cc4c9398b2be6534007d3c5a84518
Date: Wed, 12 May 2021 13:00:57 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  a6121fb7356cc4c9398b2be6534007d3c5a84518 (commit)
      from  6050e275d094d9a50f8035b27c29c1f11464e709 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a6121fb7356cc4c9398b2be6534007d3c5a84518
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Date:   Thu May 13 01:58:09 2021 +0900

    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.

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)

-----------------------------------------------------------------------

Summary of changes:
 font-latex.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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