Fix garbage collect bug, ReplaceWithoutMovingCarets takes buffer now, Reopen buffer happens automatically when not dirty
This commit is contained in:
@@ -318,7 +318,10 @@ void GenerateConfig() {
|
||||
void GenerateLuaApi() {
|
||||
MA_Scratch scratch;
|
||||
S8_String file = OS_ReadFile(scratch, "../src/text_editor/lua_api.cpp");
|
||||
S8_String file2 = OS_ReadFile(scratch, "../src/text_editor/commands.cpp");
|
||||
S8_List list = S8_Split(scratch, file, "\n");
|
||||
S8_List list2 = S8_Split(scratch, file2, "\n");
|
||||
list = S8_ConcatLists(scratch, list, list2);
|
||||
|
||||
S8_List funcs = {};
|
||||
for (S8_Node *it = list.first; it; it = it->next) {
|
||||
|
||||
Reference in New Issue
Block a user