about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/core.c8
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