org.el: Prevent an error when trying to fontify beyond (point-max).
* org.el (org-fontify-meta-lines-and-blocks-1): Prevent an error when trying to fontify beyond (point-max). TINYCHANGE Thanks to Leo and Henning for reporting this, and to Nick Dokos for providing the fix.
This commit is contained in:
parent
e48d67ed6d
commit
fc374109cd
|
@ -5475,7 +5475,7 @@ will be prompted for."
|
|||
((not (member (char-after beg) '(?\ ?\t)))
|
||||
;; just any other in-buffer setting, but not indented
|
||||
(add-text-properties
|
||||
beg (1+ (match-end 0))
|
||||
beg (match-end 0)
|
||||
'(font-lock-fontified t face org-meta-line))
|
||||
t)
|
||||
((or (member dc1 '("begin:" "end:" "caption:" "label:"
|
||||
|
|
Loading…
Reference in New Issue