; * lisp/treesit.el (treesit-font-lock-fontify-region): Minor fix.
This commit is contained in:
parent
24f0dfd373
commit
faee7e1f1b
1 changed files with 1 additions and 2 deletions
|
@ -987,8 +987,7 @@ If LOUDLY is non-nil, display some debugging information."
|
||||||
(end-time (current-time)))
|
(end-time (current-time)))
|
||||||
;; If for any query the query time is strangely long,
|
;; If for any query the query time is strangely long,
|
||||||
;; switch to fast mode (see comments above).
|
;; switch to fast mode (see comments above).
|
||||||
(when (and (eq 'undecided treesit--font-lock-fast-mode)
|
(when (and (> (time-to-seconds
|
||||||
(> (time-to-seconds
|
|
||||||
(time-subtract end-time start-time))
|
(time-subtract end-time start-time))
|
||||||
0.01))
|
0.01))
|
||||||
(if (> treesit--font-lock-fast-mode-grace-count 0)
|
(if (> treesit--font-lock-fast-mode-grace-count 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue