diff options
author | James Booth <boothj5@gmail.com> | 2013-10-06 22:46:04 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-10-06 22:46:04 +0100 |
commit | dd4deafe93bc1a17560ef0e381ae2ad751e8e6ca (patch) | |
tree | 4f3a5c67d3d8466ec03efec021a29d9aee9e7b8b /src | |
parent | eee49e8ad8e72f083e4019e7452e9405ce7cb037 (diff) | |
download | profani-tty-dd4deafe93bc1a17560ef0e381ae2ad751e8e6ca.tar.gz |
Refactor ui_current_error_line
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/core.c | 8 |
1 files 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 |