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.
This commit is contained in:
cohrs
2002-02-10 20:48:01 +00:00
parent 1c23dc1d5e
commit f0829e5a32

View File

@@ -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';