mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(jit-lock-fontify-now): Be careful not to skip multiline
regions when moving the jit-lock-context-unfontify-pos boundary.
This commit is contained in:
parent
2e167dc4e3
commit
7aaf6f174f
1 changed files with 6 additions and 1 deletions
|
|
@ -353,7 +353,12 @@ Defaults to the whole buffer. END can be out of bounds."
|
|||
;; what's already been refontified.
|
||||
(when (and jit-lock-context-unfontify-pos
|
||||
(< jit-lock-context-unfontify-pos next)
|
||||
(>= jit-lock-context-unfontify-pos start))
|
||||
(>= jit-lock-context-unfontify-pos start)
|
||||
;; Don't move boundary forward if we have to
|
||||
;; refontify previous text. Otherwise, we risk moving
|
||||
;; it past the end of the multiline property and thus
|
||||
;; forget about this multiline region altogether.
|
||||
(not (get-text-property start 'jit-lock-defer-multiline)))
|
||||
(setq jit-lock-context-unfontify-pos next))
|
||||
|
||||
;; Fontify the chunk, and mark it as fontified.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue