; * lisp/treesit.el (treesit--indent-1): Get all parsers.
authorYuan Fu <casouri@gmail.com>
Fri, 8 Sep 2023 16:09:14 +0000 (09:09 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 8 Sep 2023 16:09:14 +0000 (09:09 -0700)
lisp/treesit.el

index 63ec880b601cc829117debcbf75cf0dc0f0e85a6..1711446b40b1bac42dfb5cc1ed08ed22ea74ec03 100644 (file)
@@ -1627,7 +1627,7 @@ Return (ANCHOR . OFFSET).  This function is used by
           (cond ((null (treesit-parser-list)) nil)
                 (local-parsers (treesit-node-at
                                 bol (car local-parsers)))
-                ((eq 1 (length (treesit-parser-list)))
+                ((eq 1 (length (treesit-parser-list nil nil t)))
                  (treesit-node-at bol))
                 ((treesit-language-at (point))
                  (treesit-node-at bol (treesit-language-at (point))))