shithub: orca

Download patch

ref: 2f987daa3fcd8e720844a3b2ab62a5f539b00790
parent: 2fd26c2f7f18928fb76303359b75c994027a16c4
author: cancel <cancel@cancel.fm>
date: Thu Jan 23 19:13:08 EST 2020

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -312,9 +312,7 @@
 } 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) {