summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/treesitter/_select.lua
AgeCommit message (Collapse)AuthorFiles
2026-04-16fix(treesitter): TSNode:id() with NUL byte causes unreliable select() #39134altermo1
Problem: `TSNode:id()` returns the underlying c pointer as a string, which may include NUL bytes. In PUC Lua, `('%s'):format('\0a\0')` returns `''` and not `'\0a\0'` (i.e. treats the string as a c-string (which terminates at the NUL byte)). This resulted in two different nodes being able to have the same id. Solution: Use concatenation `..` instead of `string.format()`. (cherry picked from commit bb2284d75e7e2b0587610d1ae4d681d185622645)
2026-04-02fix(treesitter): select reset to "v" visualmode()altermo1
(cherry picked from commit facc21cc633cb97ba6ad16f10e477ac38f8f5d79)
2026-03-31fix(treesitter): select with node ending with unicode char (#38557)altermo1
Co-authored-by: zeertzjq <zeertzjq@outlook.com> (cherry picked from commit 1bcf2d7f90d4b2de18bc7e409db98893f01a83f1)
2026-03-25refactor(treesitter): use same visual-select as lsp #38475altermo1
Problem treesitter select over-complicates visual selection. Solution make it use same visual selection logic as lsp.
2026-03-14refactor(treesitter): move range related functionsaltermo1
2026-03-08feat(treesitter): incremental selectionaltermo1
Co-authored-by: György Andorka <gyorgy.andorka@protonmail.com>