From 60afe660427cbefe082d80db905c8c65b41723dc Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 18 Jul 2014 23:17:42 +0100 Subject: [PATCH] Moved status_bar_resize --- src/ui/core.c | 2 +- src/ui/statusbar.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui/core.c b/src/ui/core.c index 8b7432fa..f834c76a 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -191,8 +191,8 @@ _ui_resize(const int ch, const char * const input, const int size) { log_info("Resizing UI"); title_bar_resize(); - status_bar_resize(); wins_resize_all(); + status_bar_resize(); inp_win_resize(input, size); ProfWin *window = wins_get_current(); win_update_virtual(window); diff --git a/src/ui/statusbar.c b/src/ui/statusbar.c index 00e7353a..cb60e85d 100644 --- a/src/ui/statusbar.c +++ b/src/ui/statusbar.c @@ -107,10 +107,11 @@ status_bar_resize(void) int rows, cols; getmaxyx(stdscr, rows, cols); + werase(status_bar); + mvwin(status_bar, rows-2, 0); wresize(status_bar, 1, cols); wbkgd(status_bar, COLOUR_STATUS_TEXT); - werase(status_bar); wattron(status_bar, COLOUR_STATUS_BRACKET); mvwprintw(status_bar, 0, cols - 34, _active); mvwprintw(status_bar, 0, cols - 34 + ((current - 1) * 3), bracket); @@ -415,4 +416,4 @@ _status_bar_draw(void) _update_win_statuses(); wnoutrefresh(status_bar); inp_put_back(); -} \ No newline at end of file +}