CE reset editor struct
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m3s

This commit is contained in:
2026-03-06 00:17:54 +01:00
parent f725beb433
commit 17d5485a39

View File

@@ -85,7 +85,7 @@ void edit_start (const char* file_path, const char* text) {
terminal_dimensions (&cols, &rows); terminal_dimensions (&cols, &rows);
mprintf (ANSIQ_SCR_SAVE ANSIQ_SCR_CLR_ALL ANSIQ_CUR_INVISIBLE); mprintf (ANSIQ_SCR_CLR_ALL ANSIQ_CUR_INVISIBLE);
bool edit_run = true; bool edit_run = true;
@@ -227,7 +227,7 @@ void edit_start (const char* file_path, const char* text) {
arena_reset (&temp_arena); arena_reset (&temp_arena);
} }
mprintf (ANSIQ_SCR_CLR_ALL ANSIQ_CUR_VISIBLE ANSIQ_SCR_RESTORE); mprintf (ANSIQ_SCR_CLR_ALL ANSIQ_CUR_VISIBLE);
arena_destroy (&temp_arena); arena_destroy (&temp_arena);
@@ -237,4 +237,6 @@ void edit_start (const char* file_path, const char* text) {
free (line->gb.buffer); free (line->gb.buffer);
free (line); free (line);
} }
memset (&editor, 0, sizeof (editor));
} }