zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: pws-20 bug >> completion makes partial line vanish
Date: Tue, 1 Jun 1999 10:37:48 +0200 (MET DST)	[thread overview]
Message-ID: <199906010837.KAA20029@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Timothy J Luoma's message of Tue, 1 Jun 1999 01:15:46 -0400


Timothy J Luoma wrote:

> # mv zsh[tab] gives me
> # mv zsh-3.1.5-pws-20
> zsh*                    zsh.export              zsh.mdhi                zshxmods.h 
> zsh-3.1.5-pws-20*       zsh.h                   zsh.mdhs
> zsh-3.1.5-pws-20-NI*    zsh.mdd                 zsh.test*
> zsh-3.1.5-pws-20-m68k*  zsh.mdh                 zshpaths.h
> 
> (now I use my UP ARROW to get a history replacement and get this as a result)
> 
> #mv zsh             -NI /usr/bin
> 
> (notice the big empty space?)

That comes from trying to clear the list on terminals for which zsh
thinks that they can't do TCMULTRIGHT (zsh thinks my xterm can't do
that, hm...).
In the excerpt below, the second moveto() has to move over the old
line contents. But since it thinks, the terminal is not able to do
TCMULTRIGHT, it starts inserting stuff from the new display buffer
(nbuf), which is not yet set up. And because of that, it starts
inserting spaces.
At that place it really should use the old display-buffer contents, so 
the patch just temporarily makes it use that. Not a very nice patch, I 
agree.

Bart, I haven't tried this with pre-3, but I think it may be important 
to have there, too (unless the display code in 3.1.5 has changed more
than I think it has).

Bye
 Sven

--- os/Zle/zle_refresh.c	Tue May 25 09:15:36 1999
+++ Src/Zle/zle_refresh.c	Tue Jun  1 10:28:49 1999
@@ -268,10 +268,13 @@
     if (clearlist && listshown) {
 	if (tccan(TCCLEAREOD)) {
 	    int ovln = vln, ovcs = vcs;
+	    char *nb = nbuf[vln];
 
+	    nbuf[vln] = obuf[vln];
 	    moveto(nlnct, 0);
 	    tcout(TCCLEAREOD);
 	    moveto(ovln, ovcs);
+	    nbuf[vln] = nb;
 	} else {
 	    invalidatelist();
 	    moveto(0, 0);

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-06-01  8:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-01  8:37 Sven Wischnowsky [this message]
1999-06-01 11:56 ` Timothy J Luoma
  -- strict thread matches above, loose matches on Subject: below --
1999-06-01  5:15 Timothy J Luoma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199906010837.KAA20029@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).