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

zle_refresh second patch



Heyla, 
 I'll just send this patch before anyone notices what the problem is :-)
I thought that quite a few people (who use RPROMPTs) would have noticed it.
Anyway, this goes on top of the patch in message 820.

*** zle_refresh.c.patch1	Sat Mar 16 15:56:38 1996
--- zle_refresh.c	Sat Mar 16 15:58:20 1996
***************
*** 456,462 ****
  	    strncpy(p1, nl, nllen);
  	memset(p1 + nllen, ' ', winw - nllen);
  	p1[winw] = '\0';
! 	if (nbuf[ln])
  	    strncpy(nl, p1, winw + 1);	/* next time obuf will be up-to-date */
  	else
  	    nl = p1;		/* shouldn't happen */
--- 456,462 ----
  	    strncpy(p1, nl, nllen);
  	memset(p1 + nllen, ' ', winw - nllen);
  	p1[winw] = '\0';
! 	if (ln && nbuf[ln])
  	    strncpy(nl, p1, winw + 1);	/* next time obuf will be up-to-date */
  	else
  	    nl = p1;		/* shouldn't happen */

-- 
Mason [G.C.W]  mason@xxxxxxxxxxxxxxxxxx    "Hurt...Agony...Pain...LOVE-IT"




Messages sorted by: Reverse Date, Date, Thread, Author