ef7e5e423be61e41f0d580c09646f64b77b5b53f — Kevin McCarthy 14 days ago c64baf9
Fix sigwinch race in the index and menu processor.

Reset the SigWinch flag before the screen resize/reflow, not afterwards.
2 files changed, 2 insertions(+), 2 deletions(-)

M curs_main.c
M menu.c
M curs_main.c => curs_main.c +1 -1
@@ 775,9 775,9 @@ int mutt_index_menu (void)
 #if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM)
       if (SigWinch)
       {
+	SigWinch = 0;
 	mutt_flushinp ();
 	mutt_resize_screen ();
-	SigWinch = 0;
 	menu->top = 0; /* so we scroll the right amount */
 	/*
 	 * force a real complete redraw.  clrtobot() doesn't seem to be able

M menu.c => menu.c +1 -1
@@ 1075,8 1075,8 @@ int mutt_menuLoop (MUTTMENU *menu)
 #if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM)
     if (SigWinch)
     {
-      mutt_resize_screen ();
       SigWinch = 0;
+      mutt_resize_screen ();
       clearok(stdscr,TRUE);/*force complete redraw*/
     }
 #endif