1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-09 18:51:46 +01:00

display newlines as spaces in job-texts (10788)

This commit is contained in:
Sven Wischnowsky 2000-04-17 10:46:01 +00:00
parent fcca6c721c
commit f0e8173762
2 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,8 @@
2000-04-17 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
* 10788: Src/text.c: display newlines as spaces in job-texts
* 10782: Src/Zle/computil.c: fix for exclusion lists for -+o
specifications

View file

@ -58,6 +58,7 @@ static void
taddstr(char *s)
{
int sl = strlen(s);
char c;
while (tptr + sl >= tlim) {
int x = tptr - tbuf;
@ -68,8 +69,8 @@ taddstr(char *s)
tlim = tbuf + tsiz;
tptr = tbuf + x;
}
strcpy(tptr, s);
tptr += sl;
while ((c = *s++))
*tptr++ = (c == '\n' ? ' ' : c);
}
/**/