]> granicus.if.org Git - neomutt/commitdiff
Fix mutt_refresh() pausing during macro events.
authorKevin McCarthy <kevin@8t8.us>
Sun, 26 Mar 2017 19:27:15 +0000 (12:27 -0700)
committerRichard Russon <rich@flatcap.org>
Sat, 1 Apr 2017 11:21:09 +0000 (12:21 +0100)
Changeset a07e8215a0ef split input buffering into two pools.
Unfortunately, the mutt_refresh() was not changed to check the correct
buffer count, resulting in unnecessary refreshes during macros.

The SSL interactive certificate prompts set OPTIGNOREMACROEVENTS and
then put up a confirmation menu.  Perhaps we've just been lucky, but
it seems we should refresh the screen in those cases if we're in the
middle of a macro.  Add a check for this option in mutt_refresh() too.

curs_lib.c

index 87c5822cbda8dfd88878f68884f16f3d0e1cf265..1eb17e50f0ca3def3fd104bb51692643c4ce05a4 100644 (file)
@@ -82,7 +82,8 @@ void mutt_refresh (void)
     return;
 
   /* don't refresh in the middle of macros unless necessary */
-  if (UngetCount && !option (OPTFORCEREFRESH))
+  if (MacroBufferCount && !option (OPTFORCEREFRESH) &&
+      !option (OPTIGNOREMACROEVENTS))
     return;
 
   /* else */