From: Kevin McCarthy Date: Sun, 26 Mar 2017 19:27:15 +0000 (-0700) Subject: Fix mutt_refresh() pausing during macro events. X-Git-Tag: neomutt-20170414~18^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6e96922cf672a2c1c0465444ebd9c0c7d161187;p=neomutt Fix mutt_refresh() pausing during macro events. 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. --- diff --git a/curs_lib.c b/curs_lib.c index 87c5822cb..1eb17e50f 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -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 */