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:
parent
8e37f65910
commit
59da43689a
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue