Files
neovim/runtime/lua/vim
Rodrigodd 168bf0024e fix(treesitter): ensure TSLuaTree is always immutable
Problem:

The previous fix in #34314 relies on copying the tree in `tree_root` to
ensure the `TSNode`'s tree cannot be mutated. But that causes the
problem where two calls to `tree_root` return nodes from different
copies of a tree, which do not compare as equal. This has broken at
least one plugin.

Solution:

Make all `TSTree`s on the Lua side always immutable, avoiding the need
to copy the tree in `tree_root`, and make the only mutation point,
`tree_edit`, copy the tree instead.
2025-07-02 17:05:17 +01:00
..
2025-07-01 12:57:37 +01:00
2025-06-06 15:36:48 +01:00
2025-06-06 15:36:48 +01:00
2025-06-06 15:36:48 +01:00
2025-06-06 15:36:48 +01:00
2025-06-17 07:14:25 -07:00
2025-06-06 15:36:48 +01:00
2025-03-15 15:00:44 +01:00
2025-06-06 15:36:48 +01:00
2025-06-06 15:36:48 +01:00
2025-06-06 15:36:48 +01:00
2025-06-06 15:36:48 +01:00
2025-06-14 17:24:36 +02:00