This commit is contained in:
Alexander S. Aganichev
2000-12-22 00:14:04 +00:00
parent fe6812d9a6
commit 4156d37847
13 changed files with 51 additions and 5 deletions

View File

@@ -83,6 +83,7 @@ enum {
GRP_QUOTECHARS,
GRP_QUOTECTRL,
GRP_QUOTESTRING,
GRP_QUOTESTOPS,
GRP_QUOTEWRAPHARD,
GRP_SEARCHFOR,
GRP_TAGLINE,

View File

@@ -223,8 +223,10 @@ static int find_page(long startpos, int pageofs) {
break;
}
if(strnieql(buf, "*P", 2)) {
lastpagepos=currpos;
currpage++;
if(lines != whelp.srow+1) {
lastpagepos=currpos;
currpage++;
}
lines = whelp.srow;
}
else if(lines == whelp.erow-1) {
@@ -268,8 +270,16 @@ static void disp_cat() {
// if end-of-file or "*E" was found, assume end-of-category
end = strnieql(buf,"*E",2) ? YES : NO;
bool pagebreak = false;
if(strnieql(buf,"*P",2)) {
if(wrow != whelp.srow)
pagebreak = true;
else
continue;
}
// if end-of-category or new-page specified
if((wrow > whelp.erow-1) or strnieql(buf,"*P",2) or end) {
if((wrow > whelp.erow-1) or pagebreak or end) {
loop: ////////////////////////////////