mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-09-02 09:45:31 +00:00
Fix tree-sitter indentation conflict with multiple languages
* lisp/treesit.el (treesit--indent-1): Use bol instead of point. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
bee18e5273
commit
7447d3df94
1 changed files with 2 additions and 2 deletions
|
@ -1486,8 +1486,8 @@ Return (ANCHOR . OFFSET). This function is used by
|
|||
(cond ((null (treesit-parser-list)) nil)
|
||||
((eq 1 (length (treesit-parser-list)))
|
||||
(treesit-node-at bol))
|
||||
((treesit-language-at (point))
|
||||
(treesit-node-at bol (treesit-language-at (point))))
|
||||
((treesit-language-at bol)
|
||||
(treesit-node-at bol (treesit-language-at bol)))
|
||||
(t (treesit-node-at bol))))
|
||||
(root (treesit-parser-root-node
|
||||
(treesit-node-parser smallest-node)))
|
||||
|
|
Loading…
Reference in a new issue