zsh-workers
 help / color / mirror / code / Atom feed
* zle_refresh second patch
@ 1996-03-16  5:12 mason
  0 siblings, 0 replies; only message in thread
From: mason @ 1996-03-16  5:12 UTC (permalink / raw)
  To: zsh-list

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@werple.mira.net.au    "Hurt...Agony...Pain...LOVE-IT"



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-03-16  5:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-03-16  5:12 zle_refresh second patch mason

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).