From: Michael Elkins Date: Wed, 30 Mar 2011 14:52:03 +0000 (-0700) Subject: fix bug where SIGWICH is ignored when $imap_keepalive < $timeout X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3b93333a7646113115b7e0a7981b658983816f1;p=mutt fix bug where SIGWICH is ignored when $imap_keepalive < $timeout closes #3507 --- diff --git a/keymap.c b/keymap.c index 70765b11..92b651b6 100644 --- 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 ();