Commit 3a1d7227 authored by Juri Linkov's avatar Juri Linkov

* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure

unconditionally.  (Bug#33798)
parent 5bd60744
Pipeline #335 failed with stage
in 9 seconds
......@@ -2525,14 +2525,7 @@ hunk text is not found in the source file."
(when (and beg end)
(goto-char beg)
(if file
;; In a temporary or cached buffer
(when (text-property-not-all beg end 'fontified t)
(font-lock-fontify-region beg end)
(put-text-property beg end 'fontified t)))
;; In an existing buffer
(font-lock-ensure beg end))
(font-lock-ensure beg end)
(while (< (point) end)
(let* ((bol (point))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment