aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/treesit.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 3dde304eb8b..34d288226fa 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -987,8 +987,7 @@ If LOUDLY is non-nil, display some debugging information."
987 (end-time (current-time))) 987 (end-time (current-time)))
988 ;; If for any query the query time is strangely long, 988 ;; If for any query the query time is strangely long,
989 ;; switch to fast mode (see comments above). 989 ;; switch to fast mode (see comments above).
990 (when (and (eq 'undecided treesit--font-lock-fast-mode) 990 (when (and (> (time-to-seconds
991 (> (time-to-seconds
992 (time-subtract end-time start-time)) 991 (time-subtract end-time start-time))
993 0.01)) 992 0.01))
994 (if (> treesit--font-lock-fast-mode-grace-count 0) 993 (if (> treesit--font-lock-fast-mode-grace-count 0)