From: Yuan Fu Date: Sat, 12 Nov 2022 05:37:29 +0000 (-0800) Subject: ; * lisp/treesit.el (treesit--indent-1): Fix treesit-node-at usage. X-Git-Tag: emacs-29.0.90~1680 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e333f040e9f68bdce2b5735b4b9dd68944199056;p=emacs.git ; * lisp/treesit.el (treesit--indent-1): Fix treesit-node-at usage. --- 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))))