zsh-workers
 help / color / mirror / code / Atom feed
From: mason@werple.net.au
To: zsh-workers@math.gatech.edu (zsh-list)
Subject: one more tiny zle_refresh.c patch
Date: Fri, 29 Mar 1996 14:42:42 +1100 (EST)	[thread overview]
Message-ID: <199603290342.OAA00500@werple.net.au> (raw)

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"



             reply	other threads:[~1996-03-29  3:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-29  3:42 mason [this message]
1996-03-29  4:59 ` Richard J. Coleman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199603290342.OAA00500@werple.net.au \
    --to=mason@werple.net.au \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).