diff --git a/lisp/treesit.el b/lisp/treesit.el index 63ec880b601..1711446b40b 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -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))))