From faee7e1f1bd0167e455a0e1e5fe02e21d23fd77f Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 17 Jan 2023 22:52:22 -0800 Subject: [PATCH] ; * lisp/treesit.el (treesit-font-lock-fontify-region): Minor fix. --- lisp/treesit.el | 3 +-- 1 file changed, 1 insertion(+), 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." (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) -- 2.39.2