]> granicus.if.org Git - neomutt/commit
Don't abort the menu editor on sigwinch. (closes #3875)
authorKevin McCarthy <kevin@8t8.us>
Thu, 22 Sep 2016 21:07:18 +0000 (14:07 -0700)
committerRichard Russon <rich@flatcap.org>
Sun, 2 Oct 2016 14:50:27 +0000 (15:50 +0100)
commit733c669fd045b95133a5ab53ea1b180d33ad6e7c
treecf4df35ec7c11c45be8b68dd30e476c814ec0ef9
parent69d844d303033e8315a52d684f89cef5250fe228
Don't abort the menu editor on sigwinch. (closes #3875)

getch() will return ERR on sigwinch when timeout() is called with a
positive value.  mutt_getch() will therefore return ch==-2 for both a
timeout and a sigwinch in this case.

The imap code in km_dokey() exits out of the ImapKeepalive loop for a
SigWinch, and was skipping past the check for MENU_EDITOR and
tmp.ch==-2.  Move this check below the gotkey: label so the
ImapKeepalive loop behaves the same as the Timeout code.

Thanks to nicop for reporting the problem and for the initial patch!
curs_lib.c
keymap.c