; * lisp/treesit.el (treesit-font-lock-fontify-region): Minor fix.

The check for treesit--font-lock-fast-mode is not really necessary,
but anyway.
This commit is contained in:
Yuan Fu 2023-01-19 11:53:14 -08:00
parent 0c6bfeddb2
commit b7d6bb47ee
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -987,7 +987,8 @@ If LOUDLY is non-nil, display some debugging information."
(end-time (current-time)))
;; If for any query the query time is strangely long,
;; switch to fast mode (see comments above).
(when (and (> (time-to-seconds
(when (and (null treesit--font-lock-fast-mode)
(> (time-to-seconds
(time-subtract end-time start-time))
0.01))
(if (> treesit--font-lock-fast-mode-grace-count 0)