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:
parent
eee49e8ad8
commit
dd4deafe93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user