From: Yuan Fu Date: Wed, 8 Mar 2023 00:26:33 +0000 (-0800) Subject: Fix tree-sitter indent preset prev-line (bug#61998) X-Git-Tag: emacs-29.0.90~225 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=90504f9d8982c12a033286fe06b40583f553d267;p=emacs.git Fix tree-sitter indent preset prev-line (bug#61998) * lisp/treesit.el (treesit-simple-indent-presets): Fix return value. --- 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)