1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix tree-sitter indent preset prev-line (bug#61998)

* lisp/treesit.el (treesit-simple-indent-presets): Fix return value.
This commit is contained in:
Yuan Fu 2023-03-07 16:26:33 -08:00
parent ed3bab3cc7
commit 90504f9d89
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View 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)