1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Refactor ui_current_error_line

This commit is contained in:
James Booth 2013-10-06 22:46:04 +01:00
parent eee49e8ad8
commit dd4deafe93

View File

@ -792,12 +792,8 @@ void
ui_current_error_line(const char * const msg)
{
ProfWin *current = wins_get_current();
current->print_time(current, '-');
wattron(current->win, COLOUR_ERROR);
wprintw(current->win, "%s\n", msg);
wattroff(current->win, COLOUR_ERROR);
wins_refresh_current();
current->print_line(current, '-', COLOUR_ERROR, msg);
current->refresh_win(current);
}
void