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 9905be0..af89589 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();
                }