ref: e9a755892e8a390fd10dc7e8606efccc7592281b
parent: b6257bd3fead9cfaa9a408daa7425337c0fc974c
author: cancel <cancel@cancel.fm>
date: Thu Jan 23 21:25:54 EST 2020
Cleanup
--- a/term_util.c
+++ b/term_util.c
@@ -551,7 +551,6 @@
out_action->picked.type = Qmenu_action_type_picked;
out_action->picked.id = cur ? qmenu_itemextra(extras, cur)->user_id : 0;
return true;
- break;
}
case KEY_UP:
qmenu_drive_upordown(qm, REQ_UP_ITEM);
@@ -662,10 +661,9 @@
case KEY_ENTER:
out_action->any.type = Qform_action_type_submitted;
return true;
- default:
- form_driver(qf->ncurses_form, key);
- return false;
}
+ form_driver(qf->ncurses_form, key);
+ return false;
}
static Usz size_without_trailing_spaces(char const *str) {