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)
|
ui_current_error_line(const char * const msg)
|
||||||
{
|
{
|
||||||
ProfWin *current = wins_get_current();
|
ProfWin *current = wins_get_current();
|
||||||
current->print_time(current, '-');
|
current->print_line(current, '-', COLOUR_ERROR, msg);
|
||||||
wattron(current->win, COLOUR_ERROR);
|
current->refresh_win(current);
|
||||||
wprintw(current->win, "%s\n", msg);
|
|
||||||
wattroff(current->win, COLOUR_ERROR);
|
|
||||||
|
|
||||||
wins_refresh_current();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user