Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Zle redisplay bug in pws-24



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