ref: 185d7449243457f5ad60346b702e2168da63a636
parent: 4631c7732dfc7497622a7a1e5bb6a5ced7e617e2
author: cancel <cancel@cancel.fm>
date: Thu Dec 13 17:40:15 EST 2018
Cleanup
--- a/term_util.c
+++ b/term_util.c
@@ -93,7 +93,7 @@
Qmsg* qmsg_push(int height, int width) {
Qmsg* qm = malloc(sizeof(Qmsg));
- qnav_stack_push(Qnav_type_msg, height, width, &qm->nav_block);
+ qnav_stack_push(Qnav_type_qmsg, height, width, &qm->nav_block);
qnav_draw_box(&qm->nav_block);
return qm;
}
@@ -148,7 +148,7 @@
void qnav_free_block(Qnav_block* qb) {
switch (qb->tag) {
- case Qnav_type_msg: {
+ case Qnav_type_qmsg: {
Qmsg* qm = qmsg_of(qb);
free(qm);
} break;
--- a/term_util.h
+++ b/term_util.h
@@ -40,7 +40,7 @@
void term_util_init_colors();
typedef enum {
- Qnav_type_msg,
+ Qnav_type_qmsg,
Qnav_type_qmenu,
} Qnav_type_tag;
--- a/tui_main.c
+++ b/tui_main.c
@@ -1758,7 +1758,7 @@
Qnav_block* qb = qnav_top_block();
if (qb) {
switch (qb->tag) {
- case Qnav_type_msg: {
+ case Qnav_type_qmsg: {
Qmsg* qm = qmsg_of(qb);
if (qmsg_drive(qm, key))
qnav_stack_pop();