]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-first-unseen-message): Fix 1-off error.
authorRichard M. Stallman <rms@gnu.org>
Tue, 20 Dec 1994 15:42:57 +0000 (15:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 20 Dec 1994 15:42:57 +0000 (15:42 +0000)
lisp/mail/rmail.el

index 3c65e22fc3a74ba3b079d2e24d5ac65e26640fad..458415dc8884f46b7f15a7eb333ed0fd75a098d6 100644 (file)
@@ -1734,7 +1734,7 @@ Interactively, empty argument means use same regexp used last time."
        found)
     (save-restriction
       (widen)
-      (while (and (not found) (< current rmail-total-messages))
+      (while (and (not found) (<= current rmail-total-messages))
        (if (rmail-message-labels-p current ", ?\\(unseen\\),")
            (setq found current))
        (setq current (1+ current))))