diff options
-rw-r--r-- | Src/text.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Src/text.c b/Src/text.c index 8823a69bc..56454c16a 100644 --- a/Src/text.c +++ b/Src/text.c @@ -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); } /**/ |