(nnimap-request-group): Avoid double SELECT on `M-g'.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 2 Jan 2011 06:36:11 +0000 (07:36 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 2 Jan 2011 06:36:11 +0000 (07:36 +0100)
lisp/ChangeLog
lisp/nnimap.el

index 1cf1c44..d15ecdd 100644 (file)
@@ -1,5 +1,7 @@
 2011-01-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnimap.el (nnimap-request-group): Avoid double SELECT on `M-g'.
+
        * gnus-group.el (gnus-group-kill-group): Don't try to update the group
        status is the group clearly is unreachable.
 
index acbb091..1899b0e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; nnimap.el --- IMAP interface for Gnus
 
-;; Copyright (C) 2010 Free Software Foundation, Inc.
+;; Copyright (C) 2010, 2011 Free Software Foundation, Inc.
 
 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
 ;;         Simon Josefsson <simon@josefsson.org>
@@ -639,7 +639,7 @@ textual parts.")
   (let ((result (nnimap-possibly-change-group
                 ;; Don't SELECT the group if we're going to select it
                 ;; later, anyway.
-                (if (and dont-check
+                (if (and (not dont-check)
                          (assoc group nnimap-current-infos))
                     nil
                   group)