if (menu->current < 0)
menu->current = ci_first_message ();
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
}
static const struct mapping_t IndexHelp[] = {
CHECK_ATTACH;
mutt_pattern_func (MUTT_DELETE, _("Delete messages matching: "));
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
break;
#ifdef USE_POP
}
else
menu->current = 0;
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
if (Context->msgcount && (Sort & SORT_MASK) == SORT_THREADS)
mutt_draw_tree (Context);
menu->redraw = REDRAW_FULL;
{
for (j = 0; j < Context->vcount; j++)
mutt_set_flag (Context, Context->hdrs[Context->v2r[j]], MUTT_TAG, 0);
- menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
}
else
{
((Context->last_tag == CURHDR && !CURHDR->tagged)
? NULL : Context->last_tag);
- menu->redraw = REDRAW_STATUS;
+ menu->redraw |= REDRAW_STATUS;
if (option (OPTRESOLVE) && menu->current < Context->vcount - 1)
{
menu->current++;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
mutt_pattern_func (MUTT_TAG, _("Tag messages matching: "));
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
break;
case OP_MAIN_UNDELETE_PATTERN:
CHECK_ACL(MUTT_ACL_DELETE, _("Cannot undelete message(s)"));
if (mutt_pattern_func (MUTT_UNDELETE, _("Undelete messages matching: ")) == 0)
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
break;
case OP_MAIN_UNTAG_PATTERN:
CHECK_MSGCOUNT;
CHECK_VISIBLE;
if (mutt_pattern_func (MUTT_UNTAG, _("Untag messages matching: ")) == 0)
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
break;
/* --------------------------------------------------------------------
update_index (menu, Context, check, oldcount, index_hint);
set_option (OPTSEARCHINVALID);
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
break;
}
FREE (&Context);
if ((menu->current = ci_next_undeleted (menu->current)) == -1)
{
menu->current = menu->oldcurrent;
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
}
else
- menu->redraw = REDRAW_MOTION_RESYNCH;
+ menu->redraw |= REDRAW_MOTION_RESYNCH;
}
else
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
}
menu->redraw |= REDRAW_STATUS;
break;
mutt_set_flag (Context, Context->hdrs[Context->v2r[j]], MUTT_READ, 1);
}
}
- menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
}
else
{
if ((menu->current = ci_next_undeleted (menu->current)) == -1)
{
menu->current = menu->oldcurrent;
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
}
else
- menu->redraw = REDRAW_MOTION_RESYNCH;
+ menu->redraw |= REDRAW_MOTION_RESYNCH;
}
else
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
menu->redraw |= REDRAW_STATUS;
}
break;
if (mutt_change_flag (tag ? NULL : CURHDR, (op == OP_MAIN_SET_FLAG)) == 0)
{
- menu->redraw = REDRAW_STATUS;
+ menu->redraw |= REDRAW_STATUS;
if (tag)
menu->redraw |= REDRAW_INDEX;
else if (option (OPTRESOLVE))
mutt_tag_set_flag (MUTT_PURGE, (op == OP_PURGE_MESSAGE));
if (option (OPTDELETEUNTAG))
mutt_tag_set_flag (MUTT_TAG, 0);
- menu->redraw = REDRAW_INDEX;
+ menu->redraw |= REDRAW_INDEX;
}
else
{
if ((menu->current = ci_next_undeleted (menu->current)) == -1)
{
menu->current = menu->oldcurrent;
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
}
else if (menu->menu == MENU_PAGER)
{
menu->redraw |= REDRAW_MOTION_RESYNCH;
}
else
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
}
menu->redraw |= REDRAW_STATUS;
break;
if (option (OPTRESOLVE))
if ((menu->current = ci_next_undeleted (menu->current)) == -1)
menu->current = menu->oldcurrent;
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
}
break;
*/
if (Context->magic == MUTT_IMAP && !option (OPTIMAPPEEK))
{
- menu->redraw = (tag ? REDRAW_INDEX : REDRAW_CURRENT) | REDRAW_STATUS;
+ menu->redraw |= (tag ? REDRAW_INDEX : REDRAW_CURRENT) | REDRAW_STATUS;
}
#endif
*/
if (Context->magic == MUTT_IMAP && !option (OPTIMAPPEEK))
{
- menu->redraw = (tag ? REDRAW_INDEX : REDRAW_CURRENT) | REDRAW_STATUS;
+ menu->redraw |= (tag ? REDRAW_INDEX : REDRAW_CURRENT) | REDRAW_STATUS;
}
#endif
continue;
}
}
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
}
break;
if (menu->current == -1)
menu->current = menu->oldcurrent;
}
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
}
break;
{
mutt_tag_set_flag (MUTT_DELETE, 0);
mutt_tag_set_flag (MUTT_PURGE, 0);
- menu->redraw = REDRAW_INDEX;
+ menu->redraw |= REDRAW_INDEX;
}
else
{
if (option (OPTRESOLVE) && menu->current < Context->vcount - 1)
{
menu->current++;
- menu->redraw = REDRAW_MOTION_RESYNCH;
+ menu->redraw |= REDRAW_MOTION_RESYNCH;
}
else
- menu->redraw = REDRAW_CURRENT;
+ menu->redraw |= REDRAW_CURRENT;
}
menu->redraw |= REDRAW_STATUS;
break;
if (menu->current == -1)
menu->current = menu->oldcurrent;
}
- menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
+ menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
}
break;
mutt_set_flag (Context, extra->hdr, MUTT_PURGE, (ch == OP_PURGE_MESSAGE));
if (option (OPTDELETEUNTAG))
mutt_set_flag (Context, extra->hdr, MUTT_TAG, 0);
- pager_menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
if (option (OPTRESOLVE))
{
ch = -1;
if (!option (OPTRESOLVE) && PagerIndexLines)
pager_menu->redraw = REDRAW_FULL;
else
- pager_menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
}
break;
CHECK_ACL(MUTT_ACL_WRITE, "Cannot flag message");
mutt_set_flag (Context, extra->hdr, MUTT_FLAG, !extra->hdr->flagged);
- pager_menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
if (option (OPTRESOLVE))
{
ch = -1;
((Context->last_tag == extra->hdr && !extra->hdr->tagged)
? NULL : Context->last_tag);
- pager_menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
if (option (OPTRESOLVE))
{
ch = -1;
mutt_set_flag (Context, extra->hdr, MUTT_READ, 1);
first = 0;
Context->msgnotreadyet = -1;
- pager_menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
if (option (OPTRESOLVE))
{
ch = -1;
mutt_set_flag (Context, extra->hdr, MUTT_DELETE, 0);
mutt_set_flag (Context, extra->hdr, MUTT_PURGE, 0);
- pager_menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
if (option (OPTRESOLVE))
{
ch = -1;
if (!option (OPTRESOLVE) && PagerIndexLines)
pager_menu->redraw = REDRAW_FULL;
else
- pager_menu->redraw = REDRAW_STATUS | REDRAW_INDEX;
+ pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
}
break;