summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-11-08 08:07:21 -0800
committerKevin McCarthy <kevin@8t8.us>2019-11-08 08:07:21 -0800
commitef7e5e423be61e41f0d580c09646f64b77b5b53f (patch)
tree243888b903fcdc19e3163fd66b2bee5759bf6056 /curs_main.c
parentc64baf939418b9ad7380edabb4f20be812bdd1d4 (diff)
Fix sigwinch race in the index and menu processor.
Reset the SigWinch flag before the screen resize/reflow, not afterwards.
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/curs_main.c b/curs_main.c
index 0f93df3f..dffaab82 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -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