; * 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:
parent
0c6bfeddb2
commit
b7d6bb47ee
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue