BSD 4_3_Reno release
[unix-history] / usr / src / usr.bin / roff / common_source / n7.c
index fa8964e..99b749d 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)n7.c       4.3 1/5/88";
+static char sccsid[] = "@(#)n7.c       4.4 3/7/90";
 #endif lint
 
 #include "tdef.h"
 #endif lint
 
 #include "tdef.h"
@@ -438,10 +438,8 @@ nl1:
 nlpn:
        if(v.pn == pfrom){
                print++;
 nlpn:
        if(v.pn == pfrom){
                print++;
-               pfrom = -1;
        }else if(opn == pto || v.pn > pto){
                print = 0;
        }else if(opn == pto || v.pn > pto){
                print = 0;
-               opn = -1;
                chkpn();
                goto nlpn;
                }
                chkpn();
                goto nlpn;
                }
@@ -479,16 +477,20 @@ int a;
        return(i);
 }
 chkpn(){
        return(i);
 }
 chkpn(){
-       pto = *(pnp++);
-       pfrom = pto & ~MOT;
+       pfrom = pto = *(pnp++);
        if(pto == -1){
                flusho();
                done1(0);
        }
        if(pto == -1){
                flusho();
                done1(0);
        }
-       if(pto & MOT){
-               pto &= ~MOT;
+       if(pto == -2){
                print++;
                pfrom = 0;
                print++;
                pfrom = 0;
+               pto = 10000;
+       }
+       else if(pto & MOT){
+               print++;
+               pto &= ~MOT;
+               pfrom = 0;
        }
 }
 findt(a)
        }
 }
 findt(a)