From: P.Stephenson@swansea.ac.uk
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: Revised dohistexpand()
Date: Wed, 09 Aug 95 15:35:35 +0100 [thread overview]
Message-ID: <23148.9508091435@pyro.swan.ac.uk> (raw)
In-Reply-To: "P.Stephenson@swansea.ac.uk"'s message of "Wed, 09 Aug 95 14:44:36 BST." <22497.9508091344@pyro.swan.ac.uk>
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@swansea.ac.uk> 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.
next prev parent reply other threads:[~1995-08-09 14:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-09 13:44 P.Stephenson
1995-08-09 14:35 ` P.Stephenson [this message]
1995-08-09 15:21 ` Zoltan Hidvegi
1995-08-09 17:11 ` P.Stephenson
1995-08-10 12:54 ` Zefram
1995-08-10 20:19 ` Zoltan Hidvegi
[not found] <24456.199508101254@stone.dcs.warwick.ac.uk>
1995-08-10 14:08 ` P.Stephenson
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=23148.9508091435@pyro.swan.ac.uk \
--to=p.stephenson@swansea.ac.uk \
--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).