]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tree-sitter indent preset prev-line (bug#61998)
authorYuan Fu <casouri@gmail.com>
Wed, 8 Mar 2023 00:26:33 +0000 (16:26 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 8 Mar 2023 00:27:24 +0000 (16:27 -0800)
* lisp/treesit.el (treesit-simple-indent-presets): Fix return value.

lisp/treesit.el

index 19484ceb0c256dcda3c87b0487270ab61f09025d..44a93f5e26136c4301909b82d67f05a493f2c7b0 100644 (file)
@@ -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)