ref: ec60438d796f15425245a785ecba893319722da8
parent: 7e03025270de66d463c7507fbaca45105e7a2cb6
author: cancel <cancel@cancel.fm>
date: Sat Jan 18 17:36:00 EST 2020
Cleanup
--- a/term_util.c
+++ b/term_util.c
@@ -145,13 +145,14 @@
case Qblock_type_qmsg: {
Qmsg *qm = qmsg_of(qb);
free(qm);
- } break;
- case Qblock_type_qmenu: {
+ break;
+ }
+ case Qblock_type_qmenu:
qmenu_free(qmenu_of(qb));
- } break;
- case Qblock_type_qform: {
+ break;
+ case Qblock_type_qform:
qform_free(qform_of(qb));
- } break;
+ break;
}
}
@@ -548,7 +549,8 @@
out_action->picked.type = Qmenu_action_type_picked;
out_action->picked.id = cur ? qmenu_itemextra(extras, cur)->user_id : 0;
return true;
- } break;
+ break;
+ }
case KEY_UP:
qmenu_drive_upordown(qm, REQ_UP_ITEM);
return false;
@@ -659,7 +661,8 @@
case KEY_ENTER: {
out_action->any.type = Qform_action_type_submitted;
return true;
- } break;
+ break;
+ }
default:
form_driver(qf->ncurses_form, key);
return false;