]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/treesit.el (treesit--indent-1): Fix treesit-node-at usage.
authorYuan Fu <casouri@gmail.com>
Sat, 12 Nov 2022 05:37:29 +0000 (21:37 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 12 Nov 2022 05:37:29 +0000 (21:37 -0800)
lisp/treesit.el

index 796b85ef74b978cd8df67a831d4da7e9ed8797d9..4d1a6bdf827a59df1cfea5af9c632e7991fd02d5 100644 (file)
@@ -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))))