diff options
author | Michael Elkins <me@sigpipe.org> | 2011-03-30 07:52:03 -0700 |
---|---|---|
committer | Michael Elkins <me@sigpipe.org> | 2011-03-30 07:52:03 -0700 |
commit | c3b93333a7646113115b7e0a7981b658983816f1 (patch) | |
tree | 2e56e18125014a432d6c2403295f23429aa9234d /keymap.c | |
parent | 819823ff680cc1e5dbe8581752a2568243a75465 (diff) |
fix bug where SIGWICH is ignored when $imap_keepalive < $timeout
closes #3507
Diffstat (limited to 'keymap.c')
-rw-r--r-- | keymap.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 (); |