From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2643 invoked from network); 8 Jul 1999 09:35:16 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Jul 1999 09:35:16 -0000 Received: (qmail 21488 invoked by alias); 8 Jul 1999 09:35:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7029 Received: (qmail 21481 invoked from network); 8 Jul 1999 09:35:07 -0000 Date: Thu, 8 Jul 1999 11:35:02 +0200 (MET DST) Message-Id: <199907080935.LAA12042@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Oliver Kiddle's message of Fri, 02 Jul 1999 16:35:39 +0100 Subject: Re: Problem with cursor position after wrapped completion lists Oliver Kiddle wrote: > I tried it again and it seemed to work fine in the new xterms and > aixterms which I created but after looking back in the aixterm where I'd > had the problems, I realised what the cause was. There was one > line in the list which was exactly 80 ($COLUMNS) characters wide. > > xterm and aixterm seem to treat this differently: aixterm gives me a blank > line after it whereas xterm doesn't. Zsh then places the cursor correctly > only with the xterm. Hm. I've had a look at this: the only solution I see is to make the code check if the line it just printed is COLUMNS characters long whenever it wants to print a newline. Since there are several ways how the different things are printed (display-lists, explanation strings, matches), fixing this can get quite ugly, so I better ask first: does anybody see a better solution than to keep track of the number of characters printed? Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de