]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix filing messages when 'rmail-output-reset-deleted-flag' is non-nil
authorEli Zaretskii <eliz@gnu.org>
Sat, 28 Nov 2020 17:05:18 +0000 (19:05 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 28 Nov 2020 17:05:18 +0000 (19:05 +0200)
* lisp/mail/rmailout.el (rmail-output): Fix off-by-one error in
deciding when to advance to the next message under non-nil
'rmail-output-reset-deleted-flag'.  (Bug#44839)

lisp/mail/rmailout.el

index 49531eab91e0c8a31caed13ba53f473921de8785..cfde335b54f83a474e542880209a48a53bc8f7a3 100644 (file)
@@ -579,7 +579,7 @@ from a non-Rmail buffer.  In this case, COUNT is ignored."
                      (progn
                        (if rmail-delete-after-output
                            (rmail-delete-message))
-                       (if (> count 0)
+                       (if (>= count 0)
                            (let ((msgnum rmail-current-message))
                              (rmail-next-message 1)
                              (eq rmail-current-message (1+ msgnum)))))