summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-18 07:12:32 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-18 07:12:32 +0000
commit59da43689af6ca1048f2e956f10c18cd17774f2a (patch)
tree1baceac4ae2e3bcf4c8040a08f672bf08ed665ce
parent8e37f6591088d0752bce60f5c1e64db182400047 (diff)
downloadzsh-59da43689af6ca1048f2e956f10c18cd17774f2a.tar.gz
zsh-59da43689af6ca1048f2e956f10c18cd17774f2a.zip
fix to get newlines in non-job-texts (I'm sooo stupid)
-rw-r--r--Src/text.c8
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);
}
/**/