Patch from Dmitry Zakharov to fix a bug discovered via the freeswap
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 23 Jul 2004 02:11:25 +0000 (02:11 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 23 Jul 2004 02:11:25 +0000 (02:11 -0000)
script.

editors/awk.c

index 9905be092a0775c64f369cf22137f7fe5a494d68..af895892563450477ebf9c6d0afddf19c7693020 100644 (file)
@@ -1211,6 +1211,7 @@ static void chain_group(void) {
 
        if (c & TC_GRPSTART) {
                while(next_token(TC_GRPSEQ | TC_GRPTERM) != TC_GRPTERM) {
+                       if (t.tclass & TC_NEWLINE) continue;    
                        rollback_token();
                        chain_group();
                }