Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Revised dohistexpand()
- X-seq: zsh-workers 298
- From: P.Stephenson@xxxxxxxxxxxxx
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Revised dohistexpand()
- Date: Wed, 09 Aug 95 15:35:35 +0100
- In-reply-to: "P.Stephenson@xxxxxxxxxxxxx"'s message of "Wed, 09 Aug 95 14:44:36 BST." <22497.9508091344@xxxxxxxxxxxxxxx>
Minor addition to that patch: I just discovered there's a function
which does three of my lines. This doesn't make any difference to
anything.
*** Src/zle_tricky.c.he2 Wed Aug 9 15:32:23 1995
--- Src/zle_tricky.c Wed Aug 9 15:30:19 1995
***************
*** 3777,3788 ****
if (test) {
/* The right bit changed: set cursor to end of it, */
cs = endptr - (char *)line;
! /* delete it, */
backdel(endptr - startptr);
/* and insert the new stuff. */
! spaceinline(newcount);
! memcpy(line+cs, newline, newcount);
! cs += newcount;
ret = 1;
}
--- 3777,3786 ----
if (test) {
/* The right bit changed: set cursor to end of it, */
cs = endptr - (char *)line;
! /* delete old stuff, */
backdel(endptr - startptr);
/* and insert the new stuff. */
! inststrlen(newline, 1, newcount);
ret = 1;
}
--
Peter Stephenson <P.Stephenson@xxxxxxxxxxxxx> Tel: +44 1792 205678 extn. 4461
WWW: http://python.swan.ac.uk/~pypeters/ Fax: +44 1792 295324
Department of Physics, University of Wales, Swansea,
Singleton Park, Swansea, SA2 8PP, U.K.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author