From d861bb98059da21d90b966c6bd24bf60a91fdec8 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 12 Jul 2000 10:31:29 +0000 Subject: fix for (z) flag, don't take # as comment (12228) --- Src/hist.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Src/hist.c') diff --git a/Src/hist.c b/Src/hist.c index beecfbe4a..35ab2b1fd 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -2058,15 +2058,15 @@ 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; + int owb = wb, owe = we, oadx = addedx, ozp = zleparse, oexp = expanding; char *p; if (!list) list = newlinklist(); - zleparse = 1; + zleparse = 3; addedx = 0; - noerrs = 1; + noerrs = expanding = 1; lexsave(); if (buf) { int l = strlen(buf); @@ -2133,6 +2133,7 @@ bufferwords(LinkList list, char *buf, int *index) inpop(); errflag = 0; zleparse = ozp; + expanding = oexp; noerrs = ne; lexrestore(); cs = ocs; -- cgit 1.4.1