Skip to content

Instantly share code, notes, and snippets.

@gahr
Created August 4, 2021 10:37
Show Gist options
  • Select an option

  • Save gahr/85ec74f4c26699bd07f1a3ef5b1ec18c to your computer and use it in GitHub Desktop.

Select an option

Save gahr/85ec74f4c26699bd07f1a3ef5b1ec18c to your computer and use it in GitHub Desktop.
static int handle_changes(struct IndexSharedData *shared,
struct IndexPrivateData *priv)
{
menu_queue_redraw(priv->menu, MENU_REDRAW_STATUS);
const bool c_resolve = cs_subset_bool(shared->sub, "resolve");
if (!priv->tag && c_resolve)
{
const int index = ci_next_undeleted(shared->mailbox, menu_get_index(priv->menu));
if (index != -1)
{
menu_set_index(priv->menu, index);
if (priv->in_pager)
{
return IR_CONTINUE;
}
}
}
menu_queue_redraw(priv->menu, priv->tag ? MENU_REDRAW_INDEX : MENU_REDRAW_CURRENT);
return IR_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment