1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'statusbar' into winbuffers

This commit is contained in:
James Booth 2014-07-18 23:19:25 +01:00
commit 78b0388b6c
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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);