]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/treesit.el (treesit-can-enable-p): Minor fix.
authorYuan Fu <casouri@gmail.com>
Thu, 8 Sep 2022 19:50:47 +0000 (12:50 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 8 Sep 2022 19:50:47 +0000 (12:50 -0700)
lisp/treesit.el

index 83d80ac6dab98be2ba8bc3899d47b5b1079c13f7..a374ceda6d533eafeeef1ac77c3cd4291889b363 100644 (file)
@@ -48,7 +48,7 @@
 Currently this function checks whether tree-sitter is available
 and the buffer size."
   (and (treesit-available-p)
-       (< (buffer-size) treesit-maximum-size)))
+       (< (buffer-size) treesit-max-buffer-size)))
 
 ;;; Parser API supplement