From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4608 invoked from network); 17 Apr 2000 08:29:23 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Apr 2000 08:29:23 -0000 Received: (qmail 23417 invoked by alias); 17 Apr 2000 08:29:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10781 Received: (qmail 23405 invoked from network); 17 Apr 2000 08:29:16 -0000 Date: Mon, 17 Apr 2000 10:29:07 +0200 (MET DST) Message-Id: <200004170829.KAA08339@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk Subject: 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@informatik.hu-berlin.de