Fix parent-bol preset for tree-sitter indent
* lisp/treesit.el (treesit-simple-indent-presets): Return point rather than column.
This commit is contained in:
parent
a915d836fc
commit
3a784d1321
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue