From: cohrs Date: Sun, 10 Feb 2002 20:48:01 +0000 (+0000) Subject: tty: msg_window and long messages X-Git-Tag: MOVE2GIT~3207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0829e5a321dd6f4bb6d45c22d49a16d96ec63f4;p=nethack tty: msg_window and long messages the code that puts long messages into the top line inserts newlines into the message, but the msg_window code wasn't looking for them. --- diff --git a/win/tty/wintty.c b/win/tty/wintty.c index c17a76ce2..434c91529 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -1851,7 +1851,7 @@ tty_putstr(window, attr, str) cw->maxrow = cw->cury; if(n0 > CO) { /* attempt to break the line */ - for(i = CO-1; i && str[i] != ' ';) + for(i = CO-1; i && str[i] != ' ' && str[i] != '\n';) i--; if(i) { cw->data[cw->cury-1][++i] = '\0';