diff --git a/ce/edit.c b/ce/edit.c index 929a10c..916e286 100644 --- a/ce/edit.c +++ b/ce/edit.c @@ -85,7 +85,7 @@ void edit_start (const char* file_path, const char* text) { 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; @@ -227,7 +227,7 @@ void edit_start (const char* file_path, const char* text) { 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); @@ -237,4 +237,6 @@ void edit_start (const char* file_path, const char* text) { free (line->gb.buffer); free (line); } + + memset (&editor, 0, sizeof (editor)); }