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:
parent
fcca6c721c
commit
f0e8173762
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue