mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01: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,6 +69,10 @@ taddstr(char *s)
|
||||||
tlim = tbuf + tsiz;
|
tlim = tbuf + tsiz;
|
||||||
tptr = tbuf + x;
|
tptr = tbuf + x;
|
||||||
}
|
}
|
||||||
|
if (tnewlins) {
|
||||||
|
memcpy(tptr, s, sl);
|
||||||
|
tptr += sl;
|
||||||
|
} else
|
||||||
while ((c = *s++))
|
while ((c = *s++))
|
||||||
*tptr++ = (c == '\n' ? ' ' : c);
|
*tptr++ = (c == '\n' ? ' ' : c);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue