From 7f9f81f3e22a58d6a8af77f05cd05c94faf88d93 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 23 May 2000 08:20:56 +0000 Subject: save and restore more variables in bufferwords(); move gotword() into core (11523) --- Src/hist.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Src/hist.c') diff --git a/Src/hist.c b/Src/hist.c index 9f35c4cd2..a3d8fa7ef 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -2059,6 +2059,7 @@ mod_export LinkList bufferwords(LinkList list, char *buf, int *index) { int num = 0, cur = -1, got = 0, ne = noerrs, ocs = cs; + int owb = wb, owe = we, oadx = addedx, ozp = zleparse; char *p; if (!list) @@ -2131,10 +2132,14 @@ bufferwords(LinkList list, char *buf, int *index) noaliases = 0; strinend(); inpop(); - errflag = zleparse = 0; + errflag = 0; + zleparse = ozp; noerrs = ne; lexrestore(); cs = ocs; + wb = owb; + we = owe; + addedx = oadx; if (index) *index = cur; -- cgit v1.2.3