zsh-workers
 help / color / mirror / code / Atom feed
From: Geoff Wing <mason@primenet.com.au>
To: hzoli@cs.elte.hu (Zoltan Hidvegi)
Cc: zsh-workers@math.gatech.edu
Subject: Re: xterm cur&paste
Date: Sat, 31 Aug 1996 15:42:32 +1000 (EST)	[thread overview]
Message-ID: <199608310542.PAA03160@coral.primenet.com.au> (raw)
In-Reply-To: <199608301622.SAA01835@bolyai.cs.elte.hu> from "Zoltan Hidvegi" at Aug 30, 96 06:22:37 pm

Zoltan Hidvegi wrote:
:> But don't expect a patch before next Tuesday/Wednesday.

Of course, it could be earlier.
This should change it so CLEAREOL and new lines don't get used too early if
the line extends the whole way, but can be used if it doesn't.
This should fix up the multiline cut & paste, without affecting normal long
lines.


*** zle_refresh.c	1996/08/12 01:39:05	2.13
--- zle_refresh.c	1996/08/30 15:58:02
***************
*** 490,500 ****
  	char_ins = 0,		/* number of characters inserted/deleted */
  	col_cleareol,		/* clear to end-of-line from this column */
  	i, j,			/* tmp					 */
! 	nllen, ollen;		/* new and old line buffer lengths	 */
  
  /* 0: setup */
      nl = nbuf[ln];
!     nllen = nl ? strlen(nl) : 0;
      ol = obuf[ln] ? obuf[ln] : "";
      ollen = strlen(ol);
  
--- 490,501 ----
  	char_ins = 0,		/* number of characters inserted/deleted */
  	col_cleareol,		/* clear to end-of-line from this column */
  	i, j,			/* tmp					 */
! 	nllen, ollen,		/* new and old line buffer lengths	 */
! 	rnllen;			/* real new line buffer length		 */
  
  /* 0: setup */
      nl = nbuf[ln];
!     rnllen = nllen = nl ? strlen(nl) : 0;
      ol = obuf[ln] ? obuf[ln] : "";
      ollen = strlen(ol);
  
***************
*** 528,534 ****
     With automatic margins, we shouldn't do it if there is another line, in
     case it messes up cut and paste. */
  
!     if (hasam && ln < nlnct - 1)
  	col_cleareol = -2;	/* clearing eol would be evil so don't */
      else {
  	col_cleareol = -1;
--- 529,535 ----
     With automatic margins, we shouldn't do it if there is another line, in
     case it messes up cut and paste. */
  
!     if (hasam && ln < nlnct - 1 && rnllen == winw)
  	col_cleareol = -2;	/* clearing eol would be evil so don't */
      else {
  	col_cleareol = -1;


-- 
Geoff Wing [mason@primenet.com.au]   PrimeNet - Internet Consultancy
  Web: http://www.primenet.com.au/   Facsimile: +61-3-9819 3788


           reply	other threads:[~1996-08-31  5:53 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <199608301622.SAA01835@bolyai.cs.elte.hu>]

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=199608310542.PAA03160@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=hzoli@cs.elte.hu \
    --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).