Make tree-sitter read function utilize faster rope reading

- By removing any allocations/deallocation that the function would have used
This commit is contained in:
2025-12-10 18:02:37 +00:00
parent f60d6ba0d8
commit bc67d2e682
4 changed files with 69 additions and 48 deletions

View File

@@ -104,11 +104,6 @@ struct Editor {
// - built by tree-sitter helpers
};
typedef struct TSLoad {
Editor *editor;
char *prev = nullptr;
} TSLoad;
Editor *new_editor(const char *filename, Coord position, Coord size);
void free_editor(Editor *editor);
void render_editor(Editor *editor);