]> granicus.if.org Git - neomutt/commitdiff
Don't clear the macro buffer during startup 818/head
authorRichard Russon <rich@flatcap.org>
Wed, 4 Oct 2017 01:07:20 +0000 (02:07 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 30 Nov 2017 13:05:57 +0000 (13:05 +0000)
* Move the folder hook after the folder has been opened
* Prevent a SIGWINCH during startup from clearing the macro buffer

Fixes #227

curs_main.c

index 5fab204054edeeb7b7c0c6ebff89369d01d225bb..fb31d5dd4109ddeee8bb0786052ff36fd92122ac 100644 (file)
@@ -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