jit-lock-force-redisplay: Make it work

* lisp/jit-lock.el (jit-lock-force-redisplay):
Make sure the buffer change is really performed (bug#66732).
This commit is contained in:
Dmitry Gutov 2023-12-23 22:53:35 +02:00
parent 5fb9d6c5e7
commit 5c3ff1494b

View file

@ -500,6 +500,7 @@ This applies to the buffer associated with marker START."
(setq start (point-min) end (max start end)))
;; Don't cause refontification (it's already been done), but just do
;; some random buffer change, so as to force redisplay.
(put-text-property start end 'fontified nil)
(put-text-property start end 'fontified t)))))
;;; Stealth fontification.