diff options
| author | Yuan Fu | 2023-01-17 22:52:22 -0800 |
|---|---|---|
| committer | Yuan Fu | 2023-01-17 22:52:22 -0800 |
| commit | faee7e1f1bd0167e455a0e1e5fe02e21d23fd77f (patch) | |
| tree | fb8365ae8df4ba7628d57daeaf1bd8e29fe66910 | |
| parent | 24f0dfd3731dcbabab0932792462636870b7bcba (diff) | |
| download | emacs-faee7e1f1bd0167e455a0e1e5fe02e21d23fd77f.tar.gz emacs-faee7e1f1bd0167e455a0e1e5fe02e21d23fd77f.zip | |
; * lisp/treesit.el (treesit-font-lock-fontify-region): Minor fix.
| -rw-r--r-- | lisp/treesit.el | 3 |
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) |