X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/ca67e7b465996afb3821d6a075c4dc6a7f0f5d52..1c15e88899094343f75aeba04122cd96a96b428e:/usr/src/usr.bin/roff/common_source/n7.c diff --git a/usr/src/usr.bin/roff/common_source/n7.c b/usr/src/usr.bin/roff/common_source/n7.c index fa8964eb8f..99b749db75 100644 --- a/usr/src/usr.bin/roff/common_source/n7.c +++ b/usr/src/usr.bin/roff/common_source/n7.c @@ -1,5 +1,5 @@ #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" @@ -438,10 +438,8 @@ nl1: nlpn: if(v.pn == pfrom){ print++; - pfrom = -1; }else if(opn == pto || v.pn > pto){ print = 0; - opn = -1; chkpn(); goto nlpn; } @@ -479,16 +477,20 @@ int a; return(i); } chkpn(){ - pto = *(pnp++); - pfrom = pto & ~MOT; + pfrom = pto = *(pnp++); if(pto == -1){ flusho(); done1(0); } - if(pto & MOT){ - pto &= ~MOT; + if(pto == -2){ print++; pfrom = 0; + pto = 10000; + } + else if(pto & MOT){ + print++; + pto &= ~MOT; + pfrom = 0; } } findt(a)