From b9b9db8d01667d7a2b9609e73e77ca246cef980c Mon Sep 17 00:00:00 2001 From: cancel Date: Sun, 2 Dec 2018 11:52:17 +0900 Subject: [PATCH] Fix clearing bottom ui bar empty rows --- tui_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tui_main.c b/tui_main.c index 168810c..b753f08 100644 --- a/tui_main.c +++ b/tui_main.c @@ -171,6 +171,10 @@ int main(int argc, char** argv) { // clear(); draw_debug_field(stdscr, 0, 0, field.buffer, field.height, field.width, 8, 8); + for (int y = field.height; y < term_height - 1; ++y) { + wmove(stdscr, y, 0); + wclrtoeol(stdscr); + } draw_ui_bar(stdscr, term_height - 1, 0, input_file, tick_num); //refresh();