about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-07-29 23:03:00 +0100
committerJames Booth <boothj5@gmail.com>2015-07-29 23:03:00 +0100
commit79f618367d1e3a5e1c3fa55798e7e5b01f577273 (patch)
tree5f3f47764b5c6e836a2f9d0e5788419160ed878d /src
parent5576b88a0498f138939f43a0d7948870939c907d (diff)
downloadprofani-tty-79f618367d1e3a5e1c3fa55798e7e5b01f577273.tar.gz
Do not print newline when curs position 0
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) {