diff options
author | Eli Zaretskii <eliz@gnu.org> | 2020-11-28 19:05:18 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-11-28 19:05:18 +0200 |
commit | 2cdf1fd261128976c5769b7959e7b98e5425a3fd (patch) | |
tree | 3433654727b78df7dcbe40e9378f19ec1d9e319f | |
parent | a72db8ab8bfe417d40707be6e791c084509f4abf (diff) | |
download | emacs-2cdf1fd261128976c5769b7959e7b98e5425a3fd.tar.gz |
Fix filing messages when 'rmail-output-reset-deleted-flag' is non-nil
* 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)
-rw-r--r-- | lisp/mail/rmailout.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 49531eab91e..cfde335b54f 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el @@ -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))))) |