Commit bb9dcce1 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-first-unseen-message): Fix 1-off error.

parent e8c04c88
......@@ -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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment