ref: ca1a5bdfc7c64534d21b3be6a6b66685008f27eb
parent: ccfa58d6523fe63722425b2016b76fc5ba1bd80e
author: cancel <cancel@cancel.fm>
date: Thu Dec 13 20:58:48 EST 2018
Cleanup
--- a/term_util.c
+++ b/term_util.c
@@ -77,6 +77,10 @@
Qblock* qb = qnav_stack.blocks[qnav_stack.count - 1];
WINDOW* content_window = qb->content_window;
WINDOW* outer_window = qb->outer_window;
+ // erase any stuff underneath where this window is, in case it's outside of
+ // the grid in an area that isn't actively redraw
+ werase(outer_window);
+ wnoutrefresh(outer_window);
qnav_free_block(qb);
delwin(content_window);
delwin(outer_window);
@@ -181,10 +185,6 @@
}
void qnav_free_block(Qblock* qb) {
- // erase any stuff underneath where this window is, in case it's outside of
- // the grid in an area that isn't actively redraw
- werase(qb->outer_window);
- wnoutrefresh(qb->outer_window);
switch (qb->tag) {
case Qblock_type_qmsg: {
Qmsg* qm = qmsg_of(qb);