1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Do not print newline when curs position 0

This commit is contained in:
James Booth 2015-07-29 23:03:00 +01:00
parent 5576b88a04
commit 79f618367d

View File

@ -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) {