From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24869 invoked from network); 18 May 2009 18:35:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 18 May 2009 18:35:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 78575 invoked from network); 18 May 2009 18:27:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 May 2009 18:27:54 -0000 Received: (qmail 15236 invoked by alias); 18 May 2009 18:27:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26972 Received: (qmail 15217 invoked from network); 18 May 2009 18:27:46 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 May 2009 18:27:46 -0000 Received: from QMTA02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by bifrost.dotsrc.org (Postfix) with ESMTP id 76F1B8027106 for ; Mon, 18 May 2009 20:27:30 +0200 (CEST) Received: from OMTA04.westchester.pa.mail.comcast.net ([76.96.62.35]) by QMTA02.westchester.pa.mail.comcast.net with comcast id t19T1b0070ldTLk526T6Ao; Mon, 18 May 2009 18:27:06 +0000 Received: from smtp.klanderman.net ([98.217.254.247]) by OMTA04.westchester.pa.mail.comcast.net with comcast id t6TV1b00V5M2Np63Q6TW8M; Mon, 18 May 2009 18:27:30 +0000 Received: from lwm.klanderman.net (unknown [192.168.100.50]) by smtp.klanderman.net (Postfix) with ESMTP id B71A2B30144; Mon, 18 May 2009 14:27:28 -0400 (EDT) Received: by lwm.klanderman.net (Postfix, from userid 500) id 90B169FC61B; Mon, 18 May 2009 14:27:28 -0400 (EDT) From: Greg Klanderman To: zsh-workers@sunsite.dk Subject: Re: PATCH: make PROMPT_SP end-of-line marker configurable Reply-To: gak@klanderman.net Date: Mon, 18 May 2009 14:27:28 -0400 In-Reply-To: <200905171923.n4HJNRdC003859@pws-pc.ntlworld.com> (Peter Stephenson's message of "Sun, 17 May 2009 20:23:27 +0100") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (linux) References: <200905171923.n4HJNRdC003859@pws-pc.ntlworld.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: ClamAV 0.94.2/9366/Mon May 18 08:02:23 2009 on bifrost X-Virus-Status: Clean --=-=-= >>>>> Peter Stephenson writes: > No, I've submitted it with the change. Hi Peter, please apply this fix on top of what you committed yesterday; my change had a slight bug.. thanks, greg --=-=-= Content-Disposition: inline; filename=zsh-EOLMARK2.patch Content-Description: further fix Index: Src/utils.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/utils.c,v retrieving revision 1.222 diff -u -r1.222 utils.c --- Src/utils.c 17 May 2009 18:23:10 -0000 1.222 +++ Src/utils.c 18 May 2009 18:22:16 -0000 @@ -1225,7 +1225,10 @@ str = promptexpand(eolmark, 1, NULL, NULL, NULL); countprompt(str, &w, 0, -1); opts[PROMPTPERCENT] = percents; - fprintf(shout, "%s%*s\r", str, (int)columns - w - !hasxn, ""); + zputs(str, shout); + for (w = (int)columns - w - !hasxn; w > 0; w--) + putc(' ', shout); + putc('\r', shout); free(str); } --=-=-=--