summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-05-05 12:46:36 -0700
committerKevin McCarthy <kevin@8t8.us>2017-05-05 12:46:36 -0700
commitdff811a2fe4dc9dae42383400e10195863905640 (patch)
treec3c37a64dd3d29d3866ee6822be0fc7cbe7230cf /menu.c
parent0a0814b5e2d9c1eaa2f3b0f6338cfb613fc3fe95 (diff)
Change message modifying operations to additively set redraw flags.
With the ability to set redraw flags with the menu stack operations, some operations internally modify the current menu redraw flag. For instance, _mutt_set_flag() can now set REDRAW_SIDEBAR. Change the ops that modify messages to use 'redraw |= REDRAW_X' instead of overwriting the flag value.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 3874faa4..425a3cbd 100644
--- a/menu.c
+++ b/menu.c
@@ -1133,7 +1133,7 @@ int mutt_menuLoop (MUTTMENU *menu)
{
for (i = 0; i < menu->max; i++)
menu->tagged += menu->tag (menu, i, 0);
- menu->redraw = REDRAW_INDEX;
+ menu->redraw |= REDRAW_INDEX;
}
else if (menu->max)
{
@@ -1142,10 +1142,10 @@ int mutt_menuLoop (MUTTMENU *menu)
if (i && option (OPTRESOLVE) && menu->current < menu->max - 1)
{
menu->current++;
- menu->redraw = REDRAW_MOTION_RESYNCH;
+ menu->redraw |= REDRAW_MOTION_RESYNCH;
}
else
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
}
else
mutt_error _("No entries.");