From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id AAA07117 for ; Thu, 10 Aug 1995 00:42:04 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA29308 (5.65c/Gatech-10.0-IDA for ); Wed, 9 Aug 1995 10:40:50 -0400 Received: by math (5.x/SMI-SVR4) id AA18026; Wed, 9 Aug 1995 10:35:05 -0400 Resent-Date: Wed, 09 Aug 95 15:35:35 +0100 Old-Return-Path: Message-Id: <23148.9508091435@pyro.swan.ac.uk> To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: Revised dohistexpand() 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> Date: Wed, 09 Aug 95 15:35:35 +0100 From: P.Stephenson@swansea.ac.uk X-Mts: smtp Resent-Message-Id: <"g40nw1.0.WP4.OUCAm"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/298 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 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.