]> git.eshelyaron.com Git - emacs.git/commit
Refactor treesit--indent-1
authorYuan Fu <casouri@gmail.com>
Fri, 29 Nov 2024 21:45:24 +0000 (13:45 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Dec 2024 17:02:41 +0000 (18:02 +0100)
commitf9791700fa61b4170bf1d0430f08aa0db95b95ee
treeeb31d609ab1999d30668de4e4359ceb8eb0a2a1e
parent74a89605249b8868ab20314794f9b5c78f5e1185
Refactor treesit--indent-1

* lisp/treesit.el (treesit--indent-largest-node-at): New
function.
(treesit--indent-1): Extract code out into the new function.

(cherry picked from commit 1d425125694b61e2b07a7b429a6475dfe59afe37)
lisp/treesit.el