From 5b35739e5f5ae699b003abfd2c07ee553a9a97bf Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 11 Feb 2003 10:35:48 +0000 Subject: [w3m-dev-en 00868] fix mark_all_pages * anchor.c (reAnchorAny): next_line process for MarkAllPages From: Hironori SAKAMOTO --- anchor.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'anchor.c') diff --git a/anchor.c b/anchor.c index b063957..24e70e4 100644 --- a/anchor.c +++ b/anchor.c @@ -1,4 +1,4 @@ -/* $Id: anchor.c,v 1.24 2003/02/05 16:45:07 ukai Exp $ */ +/* $Id: anchor.c,v 1.25 2003/02/11 10:35:48 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include "regex.h" @@ -351,7 +351,7 @@ reAnchorAny(Buffer *buf, char *re, (MarkAllPages || l->linenumber < buf->topLine->linenumber + LASTLINE); l = l->next) { if (p && l->bpos) - continue; + goto next_line; p = l->lineBuf; for (;;) { if (regexMatch(p, &l->lineBuf[l->size] - p, p == l->lineBuf) == 1) { @@ -361,6 +361,10 @@ reAnchorAny(Buffer *buf, char *re, else break; } + next_line: + if (MarkAllPages && l->next == NULL && buf->pagerSource && + !(buf->bufferprop & BP_CLOSE)) + getNextPage(buf, PagerMax); } return NULL; } -- cgit v1.2.3