From: Adeodato Simó Date: Wed, 21 Sep 2005 14:17:14 +0000 (+0000) Subject: Check for sigwinch in index before calling km_dokey, since for unknown X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17a857f7ef917b1cf7bd46a19a7b2f398adb612d;p=neomutt Check for sigwinch in index before calling km_dokey, since for unknown reasons km_dokey seems to eat the signal in some cases. [Not reproducible in my ncurses environments - Brendan]. Closes: #1907. --- diff --git a/curs_main.c b/curs_main.c index 23507626d..24ef28cb4 100644 --- a/curs_main.c +++ b/curs_main.c @@ -589,10 +589,6 @@ int mutt_index_menu (void) move (menu->current - menu->top + menu->offset, COLS - 1); mutt_refresh (); - op = km_dokey (MENU_MAIN); - - dprint(4, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__, op)); - #if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) if (SigWinch) { @@ -611,6 +607,10 @@ int mutt_index_menu (void) } #endif + op = km_dokey (MENU_MAIN); + + dprint(4, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__, op)); + if (op == -1) continue; /* either user abort or timeout */