1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 04:12:06 +02:00

fix to get newlines in non-job-texts (I'm sooo stupid)

This commit is contained in:
Sven Wischnowsky 2000-04-18 07:12:32 +00:00
parent 8e37f65910
commit 59da43689a

View file

@ -69,8 +69,12 @@ taddstr(char *s)
tlim = tbuf + tsiz;
tptr = tbuf + x;
}
while ((c = *s++))
*tptr++ = (c == '\n' ? ' ' : c);
if (tnewlins) {
memcpy(tptr, s, sl);
tptr += sl;
} else
while ((c = *s++))
*tptr++ = (c == '\n' ? ' ' : c);
}
/**/