Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Questions



Would anyone object if I applied the patch below to make newlines in
strings in the job text be output as spaces (keeping the `jobs' output 
better readable)?

And did anyone have the time to try the patch for scrolling completion 
lists? (I have a new version which is faster and allows status lines --
it's getting silly ;-)

Bye
 Sven

diff -u -r ../oz/Src/text.c ./Src/text.c
--- ../oz/Src/text.c	Fri Apr 14 23:34:43 2000
+++ ./Src/text.c	Fri Apr 14 23:56:30 2000
@@ -58,6 +58,7 @@
 taddstr(char *s)
 {
     int sl = strlen(s);
+    char c;
 
     while (tptr + sl >= tlim) {
 	int x = tptr - tbuf;
@@ -68,8 +69,8 @@
 	tlim = tbuf + tsiz;
 	tptr = tbuf + x;
     }
-    strcpy(tptr, s);
-    tptr += sl;
+    while ((c = *s++))
+	*tptr++ = (c == '\n' ? ' ' : c);
 }
 
 /**/

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author