summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmailsum.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index b0208a102c0..83ab968a654 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -1051,7 +1051,8 @@ advance to the previous message."
;; Get the proper new message number.
(setq msg rmail-current-message))
;; Make sure that message is displayed.
- (rmail-summary-goto-msg msg)))
+ (or (zerop msg)
+ (rmail-summary-goto-msg msg))))
(defun rmail-summary-input (filename)
"Run Rmail on file FILENAME."