From e2e4b26f9005db37c4cf12e3c596e11b9331ce86 Mon Sep 17 00:00:00 2001 From: cancel Date: Sun, 5 Jan 2020 05:18:31 +0900 Subject: [PATCH] Cleanup --- term_util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/term_util.c b/term_util.c index 3ab0ce8..184b115 100644 --- a/term_util.c +++ b/term_util.c @@ -103,8 +103,7 @@ void qnav_stack_push(Qblock* qb, int height, int width) { assert(qnav_stack.blocks[i] != qb); } #endif - int left; - int top = 0; + int top = 0, left = 0; int totalheight = height + 2, totalwidth = width + 3; if (qnav_stack.count > 0) { WINDOW* w = qnav_stack.blocks[qnav_stack.count - 1]->outer_window; @@ -129,8 +128,6 @@ void qnav_stack_push(Qblock* qb, int height, int width) { left = 0; } } - } else { - left = 0; } qnav_stack.blocks[qnav_stack.count] = qb; ++qnav_stack.count;