From 17a857f7ef917b1cf7bd46a19a7b2f398adb612d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adeodato=20Sim=C3=B3?= Date: Wed, 21 Sep 2005 14:17:14 +0000 Subject: [PATCH] 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. --- curs_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.40.0