summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-03-26 12:27:15 -0700
committerKevin McCarthy <kevin@8t8.us>2017-03-26 12:27:15 -0700
commit3e9315dc544181440421f0935d50b7f45374c1e0 (patch)
tree52ee23817a0296782cb20d37d69c15c91879f6d1 /curs_lib.c
parent1f3de81717fde6775aca35b09485753b571ed6d6 (diff)
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.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/curs_lib.c b/curs_lib.c
index b747b50d..c4c42b42 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -78,7 +78,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 */