shithub: orca

Download patch

ref: e2ecdcfaadbc5527fc16304f1789c1b82db978bd
parent: ef5119a3ae996a59bfef7dfb03a27809c7663e20
author: cancel <cancel@cancel.fm>
date: Thu Jan 23 19:17:34 EST 2020

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -154,17 +154,12 @@
 } Ged_input_mode;
 
 typedef struct {
-  Usz y;
-  Usz x;
-  Usz h;
-  Usz w;
+  Usz y, x, h, w;
 } Ged_cursor;
 
 void ged_cursor_init(Ged_cursor *tc) {
-  tc->y = 0;
-  tc->x = 0;
-  tc->h = 1;
-  tc->w = 1;
+  tc->x = tc->y = 0;
+  tc->w = tc->h = 1;
 }
 
 void ged_cursor_move_relative(Ged_cursor *tc, Usz field_h, Usz field_w,