CE reset editor struct
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m3s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m3s
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user