From 3a784d1321487be4031555d19ace635598bba21c Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sat, 29 Oct 2022 13:05:52 -0700 Subject: [PATCH] Fix parent-bol preset for tree-sitter indent * lisp/treesit.el (treesit-simple-indent-presets): Return point rather than column. --- lisp/treesit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 90e5d09693f..6176fb57ef6 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -783,7 +783,8 @@ See `treesit-simple-indent-presets'.") (lambda (_n parent &rest _) (save-excursion (goto-char (treesit-node-start parent)) - (current-indentation))))) + (back-to-indentation) + (point))))) (prev-sibling . ,(byte-compile (lambda (node &rest _) (treesit-node-start -- 2.39.2