about summary refs log tree commit diff stats
path: root/title_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'title_bar.c')
-rw-r--r--title_bar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/title_bar.c b/title_bar.c
index 598622b1..113895d8 100644
--- a/title_bar.c
+++ b/title_bar.c
@@ -68,8 +68,9 @@ void title_bar_resize(void)
     int rows, cols;
     getmaxyx(stdscr, rows, cols);
 
-    title_bar = newwin(1, cols, 0, 0);
+    wresize(title_bar, 1, cols);
     wbkgd(title_bar, COLOR_PAIR(3));
+    wclear(title_bar);
     _title_bar_draw_title();
     _title_bar_draw_status();
     dirty = TRUE;