zsh-workers
 help / color / mirror / code / Atom feed
From: hzoli@cs.elte.hu (Zoltan Hidvegi)
To: wayne@tenor.clarinet.com (Wayne Davison)
Subject: Re: Multi-line update problem in zholi10.1
Date: Mon, 24 Jul 1995 13:09:25 +0100 (MET DST)	[thread overview]
Message-ID: <9507241802.AA13811@turan.elte.hu> (raw)
In-Reply-To: <9507211202.aa02305@tenor.clarinet.com> from "Wayne Davison" at Jul 21, 95 12:02:33 pm

Wayne Davison wrote:
> 
> There's a problem in zholi10.1 where it will not update the screen
> correctly when inserting characters into the first line of a multi-
> line command.  You have to be using an auto-margin terminal with
> character insert (in my case I'm using an xterm), to see the problem.
> 
> The code that is failing is in refreshline() where it checks if there
> is some space at the end of the line that needs to be cleared.
> Because it is checking the wrong variable (vcs instead of ccs) it
> uses right-cursor to try to move to column 80 (one past the right
> edge) which is not possible -- you can only get to column 80 in a
> terminal like a vt100 by outputing a character in column 79.  This
> causes the moveto() code to fail to advance to the next line, and
> then the screen becomes really messed up.
> 
> I've appended a patch that fixes this problem.  It is possible that
> with this fix the following check for i == 0 isn't needed:
> 
>     /* we've written out the new but yet to clear rubbish due to inserts */
>         if (!*nl) {
>             if ((i = (winw - ccs < char_ins ? winnw - ccs : char_ins)) == 0)
>                 return;
> 
> but I don't know the code well enough to know for sure.

I also noticed this bug but I had no time to debug it. This bug was introduced
by the patch from Geoff Wing (art. 164).  So this patch together with Geoff's
patches shoud go into the baseline as well. Thank you for fixing that.  Geoff
could probably answer your question here.

Zoltan


      reply	other threads:[~1995-07-24 18:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-21 19:02 Wayne Davison
1995-07-24 12:09 ` Zoltan Hidvegi [this message]

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=9507241802.AA13811@turan.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=wayne@tenor.clarinet.com \
    /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).