* wl-folder (wl-folder-check-one-entity): Fix
authorokada <okada>
Sun, 20 Jan 2002 20:37:55 +0000 (20:37 +0000)
committerokada <okada>
Sun, 20 Jan 2002 20:37:55 +0000 (20:37 +0000)
problem if unread is nil.

wl/ChangeLog
wl/wl-folder.el

index 06e0c4c..802ad41 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-21  Kenichi OKADA  <okada@opaopa.org>
+
+       * wl-folder (wl-folder-check-one-entity): Fix
+       problem if unread is nil.
+
 2002-01-19  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
 
        * wl-address.el (wl-address-make-completion-list): Check whether
index 7464e65..43af1d2 100644 (file)
@@ -835,7 +835,8 @@ Optional argument ARG is repeart count."
              all    (and all    (max 0 all))))
       (setq unread (or ;; If server diff, All unreads are
                        ; treated as unsync.
-                   (and (elmo-folder-use-flag-p folder)
+                   (and unread
+                        (elmo-folder-use-flag-p folder)
                         (- unread (or new 0)))
                    (elmo-folder-get-info-unread folder)
                    (cdr (wl-summary-count-unread