From 90504f9d8982c12a033286fe06b40583f553d267 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 7 Mar 2023 16:26:33 -0800 Subject: [PATCH] Fix tree-sitter indent preset prev-line (bug#61998) * lisp/treesit.el (treesit-simple-indent-presets): Fix return value. --- lisp/treesit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 19484ceb0c2..44a93f5e261 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -1253,7 +1253,8 @@ See `treesit-simple-indent-presets'.") (save-excursion (goto-char bol) (forward-line -1) - (skip-chars-forward " \t")))) + (skip-chars-forward " \t") + (point)))) (cons 'column-0 (lambda (_n _p bol &rest _) (save-excursion (goto-char bol) -- 2.39.2