summaryrefslogtreecommitdiffstats
path: root/keymap.c
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2011-03-30 07:52:03 -0700
committerMichael Elkins <me@sigpipe.org>2011-03-30 07:52:03 -0700
commitc3b93333a7646113115b7e0a7981b658983816f1 (patch)
tree2e56e18125014a432d6c2403295f23429aa9234d /keymap.c
parent819823ff680cc1e5dbe8581752a2568243a75465 (diff)
fix bug where SIGWICH is ignored when $imap_keepalive < $timeout
closes #3507
Diffstat (limited to 'keymap.c')
-rw-r--r--keymap.c7
1 files changed, 5 insertions, 2 deletions
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 ();