about summary refs log tree commit diff stats
path: root/src/ui/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/windows.c')
-rw-r--r--src/ui/windows.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index c2052cd8..d1ba16a2 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -394,10 +394,7 @@ wins_lost_connection(void)
     while (curr != NULL) {
         ProfWin *window = curr->data;
         if (window->type != WIN_CONSOLE) {
-            win_print_time(window, '-');
-            wattron(window->win, COLOUR_ERROR);
-            wprintw(window->win, "%s\n", "Lost connection.");
-            wattroff(window->win, COLOUR_ERROR);
+            win_save_print(window, '-', NULL, 0, COLOUR_ERROR, "", "Lost connection.");
 
             // if current win, set current_win_dirty
             if (wins_is_current(window)) {