Browse Source

Merge branch 'maint'

Kyle Meyer 4 years ago
parent
commit
7a62a4d325
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lisp/org.el

+ 2 - 0
lisp/org.el

@@ -5502,6 +5502,8 @@ highlighting was done, nil otherwise."
 	(while (and (< (point) limit)
 	(while (and (< (point) limit)
 		    (re-search-forward org-latex-and-related-regexp nil t))
 		    (re-search-forward org-latex-and-related-regexp nil t))
 	  (cond
 	  (cond
+           ((>= (match-beginning 0) limit)
+	    (throw 'found nil))
 	   ((cl-some (lambda (f)
 	   ((cl-some (lambda (f)
 		       (memq f '(org-code org-verbatim underline
 		       (memq f '(org-code org-verbatim underline
 					  org-special-keyword)))
 					  org-special-keyword)))