Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zle redisplay bug in pws-24
- X-seq: zsh-workers 6884
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Zle redisplay bug in pws-24
- Date: 27 Jun 1999 20:17:28 GMT
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultants
- References: <990627093815.ZM9764@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxx> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <gcw@xxxxxxx> Phone : (Australia) 0413 431 874
Messages sorted by:
Reverse Date,
Date,
Thread,
Author