From 2f987daa3fcd8e720844a3b2ab62a5f539b00790 Mon Sep 17 00:00:00 2001 From: cancel Date: Fri, 24 Jan 2020 00:13:08 +0900 Subject: [PATCH] Cleanup --- tui_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tui_main.c b/tui_main.c index 15f7a6b..0e01094 100644 --- a/tui_main.c +++ b/tui_main.c @@ -312,9 +312,7 @@ typedef struct { } Undo_history; void undo_history_init(Undo_history *hist, Usz limit) { - hist->first = NULL; - hist->last = NULL; - hist->count = 0; + *hist = (Undo_history){0}; hist->limit = limit; } void undo_history_deinit(Undo_history *hist) {