zsh-workers
 help / color / mirror / code / Atom feed
* one more tiny zle_refresh.c patch
@ 1996-03-29  3:42 mason
  1996-03-29  4:59 ` Richard J. Coleman
  0 siblings, 1 reply; 2+ messages in thread
From: mason @ 1996-03-29  3:42 UTC (permalink / raw)
  To: zsh-list

Heyla,
   while my previous patch (message 867) did provide a solution in 99.9999999%
 of the cases, there is logically one (obscure) bug which noone will ever, ever
 come across, but...  Anyway, the most elegant solution to the problem happens
 to be very similar to the original quick & dirty hack I thought of but didn't
 want to use - ah, well, you can't win them all.  
And we hope rc's still alive and bringing us 2.6.14 soon.

This goes on top of 867.
seeya, 
 Geoff  (trying to make zle_refresh 100% robust).


*** zle_refresh.c.~6~	Fri Mar 29 00:52:08 1996
--- zle_refresh.c	Fri Mar 29 14:04:47 1996
***************
*** 541,551 ****
  	    return;
  	}
  
!     /* inserting & deleting characters: we're allowed to if there's no
!        right-prompt, and we're not in the one situation where the screen
!        display isn't `guaranteed' to match ol */
! 	if ((ln || !put_rpmpt || !oput_rpmpt)
! 	    && !((ccs == 0) && hasam && ln)) {
  
  	/* deleting characters - see if we can find a match series that
  	   makes it cheaper to delete intermediate characters
--- 541,548 ----
  	    return;
  	}
  
!     /* inserting & deleting chars: we can if there's no right-prompt */
! 	if ((ln || !put_rpmpt || !oput_rpmpt)) {
  
  	/* deleting characters - see if we can find a match series that
  	   makes it cheaper to delete intermediate characters
***************
*** 611,616 ****
--- 608,615 ----
  	    else
  		putc(' ', shout);
  	    putc('\r', shout);
+ 	    if ((vln < olnct) && obuf[vln] && *obuf[vln])
+ 		*obuf[vln] = *nbuf[vln];
  	}
  	SELECT_ADD_COST(2);
      }



-- 
Mason [G.C.W]  mason@werple.mira.net.au    "Hurt...Agony...Pain...LOVE-IT"



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: one more tiny zle_refresh.c patch
  1996-03-29  3:42 one more tiny zle_refresh.c patch mason
@ 1996-03-29  4:59 ` Richard J. Coleman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard J. Coleman @ 1996-03-29  4:59 UTC (permalink / raw)
  To: mason; +Cc: zsh-workers

> And we hope rc's still alive and bringing us 2.6.14 soon.

I'm working at it.  My schedule has been hectic, but I've
been able to start working on beta14.  Hopefully I'll have
something in a week or so.

rc



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-03-29  5:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-03-29  3:42 one more tiny zle_refresh.c patch mason
1996-03-29  4:59 ` Richard J. Coleman

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