]> granicus.if.org Git - mutt/commitdiff
fix bug where SIGWICH is ignored when $imap_keepalive < $timeout
authorMichael Elkins <me@sigpipe.org>
Wed, 30 Mar 2011 14:52:03 +0000 (07:52 -0700)
committerMichael Elkins <me@sigpipe.org>
Wed, 30 Mar 2011 14:52:03 +0000 (07:52 -0700)
closes #3507

keymap.c

index 70765b11191ea97a60bf4bfd4537c2121f99627e..92b651b61d5d5cb444888ec67d7f2ea2626099a0 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -435,8 +435,11 @@ int km_dokey (int menu)
          timeout (ImapKeepalive * 1000);
          tmp = mutt_getch ();
          timeout (-1);
-         if (tmp.ch != -2)
-           /* something other than timeout */
+         /* If a timeout was not received, or the window was resized, exit the
+          * loop now.  Otherwise, continue to loop until reaching a total of
+          * $timeout seconds.
+          */
+         if (tmp.ch != -2 || SigWinch)
            goto gotkey;
          i -= ImapKeepalive;
          imap_keepalive ();