From: mason@primenet.com.au (Geoff Wing)
To: zsh-workers@sunsite.auc.dk
Subject: Re: Zle redisplay bug in pws-24
Date: 27 Jun 1999 20:17:28 GMT [thread overview]
Message-ID: <slrn7nd1mo.kfp.mason@coral.primenet.com.au> (raw)
In-Reply-To: <990627093815.ZM9764@candle.brasslantern.com>
Bart Schaefer <schaefer@candle.brasslantern.com> typed:
[...stuff deleted...]
:and appears to have something to do with killing a line that is exactly
:one character shorter than the width of the terminal.
[...stuff deleted...]
My brain must be malfunctioning for me to have spent ages on the wrong track
after being misled by this.
This is the simple patch. I doubt the super optimised version would be
worth the complexities involved.
*** Src/Zle/zle_refresh.c.org Sun Jun 20 22:36:14 1999
--- Src/Zle/zle_refresh.c Mon Jun 28 06:11:09 1999
***************
*** 495,501 ****
/* if old line and new line are different,
see if we can insert/delete a line to speed up update */
! if (ln < olnct - 1 && !(hasam && vcs == winw) &&
nbuf[ln] && obuf[ln] &&
strncmp(nbuf[ln], obuf[ln], 16)) {
if (tccan(TCDELLINE) && obuf[ln + 1] && obuf[ln + 1][0] &&
--- 495,501 ----
/* if old line and new line are different,
see if we can insert/delete a line to speed up update */
! if (ln > 0 && ln < olnct - 1 && !(hasam && vcs == winw) &&
nbuf[ln] && obuf[ln] &&
strncmp(nbuf[ln], obuf[ln], 16)) {
if (tccan(TCDELLINE) && obuf[ln + 1] && obuf[ln + 1][0] &&
--
Geoff Wing : <gcw@pobox.com> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <gcw@zsh.org> Phone : (Australia) 0413 431 874
prev parent reply other threads:[~1999-06-27 20:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-27 9:38 Bart Schaefer
1999-06-27 20:17 ` Geoff Wing [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=slrn7nd1mo.kfp.mason@coral.primenet.com.au \
--to=mason@primenet.com.au \
--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).