Closed cyqsimon closed 5 months ago
Hi. Thanks for the issue. Came across this yesterday myself. I naively thought tree-sitter would give back indexes on the char boundaries, but as you found out as well. It doesn't. Should not be an issue elsewhere, as I don't do many (any?) operations on single chars.
It's fixed. I want to fix the list alignment issue before I push out a new version
Multi-char unicode characters inside code blocks seem to be improperly handled.
MRE
The application panicked (crashed). byte index 4 is not a char boundary; it is inside 'π' (bytes 3..7) of `
π
` in src/nodes/textcomponent.rs, line 379 thread: main