From e333f040e9f68bdce2b5735b4b9dd68944199056 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Fri, 11 Nov 2022 21:37:29 -0800 Subject: [PATCH] ; * lisp/treesit.el (treesit--indent-1): Fix treesit-node-at usage. --- lisp/treesit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 796b85ef74b..4d1a6bdf827 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -1178,7 +1178,7 @@ Return (ANCHOR . OFFSET). This function is used by (smallest-node (cond ((null (treesit-parser-list)) nil) ((eq 1 (length (treesit-parser-list))) - (treesit-node-at bol nil nil t)) + (treesit-node-at bol)) ((treesit-language-at (point)) (treesit-node-at bol (treesit-language-at (point)))) (t (treesit-node-at bol)))) -- 2.39.5