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/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index bfc992ae..1b811a8e 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1034,7 +1034,10 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim
     }
 
     if ((flags & NO_EOL) == 0) {
-        wprintw(window->layout->win, "\n");
+        int curx = getcurx(window->layout->win);
+        if (curx != 0) {
+            wprintw(window->layout->win, "\n");
+        }
     }
 
     if (me_message) {