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

This commit is contained in:
Yuan Fu 2023-01-17 22:52:22 -08:00
parent 24f0dfd373
commit faee7e1f1b
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -987,8 +987,7 @@ 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 (eq 'undecided treesit--font-lock-fast-mode)
(> (time-to-seconds
(when (and (> (time-to-seconds
(time-subtract end-time start-time))
0.01))
(if (> treesit--font-lock-fast-mode-grace-count 0)