From c437e6d23ce2e082d1faacaa36e1b4150dce3a21 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 2 Jul 2002 15:08:52 +0000 Subject: max search-forware 300 articles git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@403 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/read.c') diff --git a/mbbsd/read.c b/mbbsd/read.c index 57671882..8fbbf9a9 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.5 2002/06/09 04:28:10 lwms Exp $ */ +/* $Id: read.c,v 1.6 2002/07/02 15:08:52 in2 Exp $ */ #include "bbs.h" #define MAXPATHLEN 256 @@ -372,7 +372,7 @@ static int thread(keeploc_t *locmem, int stype) { if(++now > last_line) return DONOTHING; } else { - if(--now <= 0) { + if(--now <= 0 || now < pos - 300) { if((stype & RS_FIRST) && (near)) { hit_thread = 1; return cursor_pos(locmem, near, 10); -- cgit v1.2.3