From: Richard Russon Date: Wed, 4 Oct 2017 01:07:20 +0000 (+0100) Subject: Don't clear the macro buffer during startup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baf6ebbfc939278efb1895bed47e553ea7de19b1;p=neomutt Don't clear the macro buffer during startup * Move the folder hook after the folder has been opened * Prevent a SIGWINCH during startup from clearing the macro buffer Fixes #227 --- diff --git a/curs_main.c b/curs_main.c index 5fab20405..fb31d5dd4 100644 --- a/curs_main.c +++ b/curs_main.c @@ -946,6 +946,12 @@ int mutt_index_menu(void) menu->redraw = REDRAW_FULL; } + /* On SIGWINCH, we clear the input buffer and redraw the screen. + * We don't want this to happening the first time we enter the loop. + * The startup hook puts commands into the keyboard buffer which we don't + * want to lose. */ + SigWinch = 0; + while (true) { /* Clear the tag prefix unless we just started it. Don't clear