Open mickeynp opened 3 years ago
The current behavior is that tree cursor is scoped to the node it's created against. There are more details in https://github.com/tree-sitter/tree-sitter/issues/567.
Hm. Yeah, I did actually see the documentation in tree-sitter that said that, but I clearly misunderstood what they meant by that.
It's a shame as text editing with tree-sitter most often revolves around the idea of acting on/around where point is. I'll stick to the other helper methods then in the interim.
Thanks for clarifying!
I'm encountering a weird issue and I'm fairly certain it's a bug.
If you create a cursor against a non-root node the cursor movement code does not work.
Version: 0.15.1 Test case:
EDIT: I amended the test slightly to make it more specific.