From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6717 invoked from network); 25 Apr 1999 14:08:39 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Apr 1999 14:08:39 -0000 Received: (qmail 13848 invoked by alias); 25 Apr 1999 14:08:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6101 Received: (qmail 13841 invoked from network); 25 Apr 1999 14:08:33 -0000 Message-Id: <9904251344.AA35300@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: yet another undesired 3.1.5-pws-15 change In-Reply-To: "Timothy J Luoma"'s message of "Fri, 23 Apr 1999 23:11:06 DFT." <199904240311.XAA00619@ocalhost> Date: Sun, 25 Apr 1999 15:44:17 +0200 From: Peter Stephenson Timothy J Luoma wrote: > There's still a problem with my PROMPT: > > PROMPT=' > ---------------------------------------- %t/%T > ---------------------------------------- > %S[OLDPWD: $OLDPWD] > [PWD: %~]%s > %B%n$LOCAL_HOST%b $REMOTE_HOST > ' > > it produces an extra blank line at the end (unlike 3.1.4) I didn't dare fix this when I originally spotted it, but I think the answer is the following. It doesn't have any immediately obvious ill effects. --- Src/Zle/zle_refresh.c.pw Mon Apr 19 09:59:35 1999 +++ Src/Zle/zle_refresh.c Sun Apr 25 15:30:02 1999 @@ -327,7 +327,7 @@ vcs = 0; else if (!clearflag && lpromptbuf[0]) { zputs(lpromptbuf, shout); - if (lpromptw == 0) + if (lpromptw == 0 && lprompth == 1) zputs("\n", shout); /* works with both hasam and !hasam */ } if (clearflag) { @@ -947,7 +947,7 @@ zputc('\r', shout); tc_upcurs(lprompth - 1); zputs(lpromptbuf, shout); - if (lpromptw == 0) + if (lpromptw == 0 && lprompth == 1) zputs("\n", shout); /* works with both hasam and !hasam */ } i = lpromptw; -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy