From dd4deafe93bc1a17560ef0e381ae2ad751e8e6ca Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 6 Oct 2013 22:46:04 +0100 Subject: Refactor ui_current_error_line --- src/ui/core.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ui/core.c b/src/ui/core.c index 5559639a..807625d8 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -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 -- cgit 1.4.1-2-gfad0