]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/treesit.el (treesit-font-lock-fontify-region): Minor fix.
authorYuan Fu <casouri@gmail.com>
Wed, 18 Jan 2023 06:52:22 +0000 (22:52 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 18 Jan 2023 06:52:22 +0000 (22:52 -0800)
lisp/treesit.el

index 3dde304eb8b5f843a5b91e9d45d701739e972bac..34d288226fafcd926d76e860ca0baeb92058bf16 100644 (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)