Fix rset_default_forward to use scope
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Jul 2009 12:14:40 +0000 (14:14 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Jul 2009 12:14:40 +0000 (14:14 +0200)
rset/rset.c

index 59d9dfd..114a36e 100644 (file)
@@ -405,7 +405,7 @@ int rset_default_forward(RSFD rfd, void *buf, TERMID *term,
     
     while ((more = rset_read(rfd, buf, term)) > 0)
     {
-       if ((rfd->rset->keycontrol->cmp)(untilbuf, buf) <= 1)
+       if ((rfd->rset->keycontrol->cmp)(untilbuf, buf) < rset->scope)
            break;
     }
     if (log_level)