Commit f77a59ae authored by Adeodato Simó's avatar Adeodato Simó

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.
parent 07d86d5c
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment