shithub: orca

Download patch

ref: b9b9db8d01667d7a2b9609e73e77ca246cef980c
parent: c4b6b0106b32cf5180c1463a8104dca368caa4b3
author: cancel <cancel@cancel.fm>
date: Sun Dec 2 06:52:17 EST 2018

Fix clearing bottom ui bar empty rows

--- a/tui_main.c
+++ b/tui_main.c
@@ -171,6 +171,10 @@
     // 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();