From 17d5485a39536255e3f70997eaa2b8475193edfc Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Fri, 6 Mar 2026 00:17:54 +0100 Subject: [PATCH] CE reset editor struct --- ce/edit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)); }