changeset 100119:bc5e659c237c

(pmail-only-expunge): Pass correct arg to pmail-show-message-maybe.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 02 Dec 2008 14:03:19 +0000
parents 33cb8843115c
children 47671319c860
files lisp/mail/pmail.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/pmail.el	Tue Dec 02 14:03:10 2008 +0000
+++ b/lisp/mail/pmail.el	Tue Dec 02 14:03:19 2008 +0000
@@ -3552,7 +3552,7 @@
       (if (not win)
 	  (narrow-to-region (- (buffer-size) omin) (- (buffer-size) omax)))
       (if (not dont-show)
-	  (pmail-show-message-maybe (< pmail-current-message pmail-total-messages)))
+	  (pmail-show-message-maybe (min pmail-current-message pmail-total-messages)))
       (pmail-swap-buffers-maybe)
       (if pmail-enable-mime
 	  (goto-char (+ (point-min) opoint))