Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zle_refresh second patch
- X-seq: zsh-workers 831
- From: mason@xxxxxxxxxxxxx
- To: zsh-workers@xxxxxxxxxxxxxxx (zsh-list)
- Subject: zle_refresh second patch
- Date: Sat, 16 Mar 1996 16:12:33 +1100 (EST)
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