Fix thinko.
authorChris Hanson <org/chris-hanson/cph>
Tue, 15 Oct 1996 19:42:29 +0000 (19:42 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 15 Oct 1996 19:42:29 +0000 (19:42 +0000)
v7/src/edwin/nntp.scm

index bf82d8322d73093d777491776281a4e867f865ee..4fabb23b10be3d3bd37f90901352184c4b92cf1e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: nntp.scm,v 1.7 1996/10/15 19:34:26 cph Exp $
+;;;    $Id: nntp.scm,v 1.8 1996/10/15 19:42:29 cph Exp $
 ;;;
 ;;;    Copyright (c) 1995-96 Massachusetts Institute of Technology
 ;;;
        (set-news-group:%first-article! group (vector-ref info 1))
        (set-news-group:%last-article! group (vector-ref info 2))
        (let ((predicate
-              (lambda (header)
-                (or (< (news-header:number header)
-                       (news-group:%first-article group))
-                    (> (news-header:number header)
-                       (news-group:%last-article group))))))
+              (lambda (number body?)
+                body?
+                (or (< number (news-group:%first-article group))
+                    (> number (news-group:%last-article group))))))
          (news-group:purge-header-cache group predicate)
          (news-group:purge-pre-read-headers group predicate)))
       (begin
            (hash-table/clear! table)
            (hash-table/for-each table
              (lambda (number header)
-               (if (and (news-header? header) (predicate header))
+               (if (and (news-header? header) (predicate header #f))
                    (hash-table/remove! table number))))))))
 
 (define (news-group:discard-cached-header! header)