#include <errno.h>
#include <sys/wait.h>
+#define CHECK_PAGER \
+ if ((CurrentMenu == MENU_PAGER) && \
+ (MuttVars[idx].flags & R_RESORT)) \
+ { \
+ snprintf (err->data, err->dsize, \
+ _("Not available in this menu.")); \
+ return (-1); \
+ } else
+
void toggle_quadoption (int opt)
{
int n = opt/4;
if (!mutt_strcmp ("all", tmp->data))
{
+ if (CurrentMenu == MENU_PAGER)
+ {
+ snprintf (err->data, err->dsize, _("Not available in this menu."));
+ return (-1);
+ }
for (idx = 0; MuttVars[idx].option; idx++)
mutt_restore_default (&MuttVars[idx]);
+ set_option (OPTFORCEREDRAWINDEX);
+ set_option (OPTFORCEREDRAWPAGER);
+ set_option (OPTSORTSUBTHREADS);
+ set_option (OPTNEEDRESORT);
+ set_option (OPTRESORTINIT);
+ set_option (OPTREDRAWTREE);
return 0;
}
else
+ {
+ CHECK_PAGER;
mutt_restore_default (&MuttVars[idx]);
+ }
}
else if (DTYPE (MuttVars[idx].type) == DT_BOOL)
{
return 0;
}
+ CHECK_PAGER;
if (unset)
unset_option (MuttVars[idx].data);
else if (inv)
{
if (unset)
{
+ CHECK_PAGER;
if (DTYPE (MuttVars[idx].type) == DT_ADDR)
rfc822_free_address ((ADDRESS **) MuttVars[idx].data);
else
}
else
{
+ CHECK_PAGER;
s->dptr++;
/* copy the value of the string */
break;
}
+ CHECK_PAGER;
s->dptr++;
/* copy the value of the string */
break;
}
+ CHECK_PAGER;
s->dptr++;
/* copy the value of the string */
break;
}
+ CHECK_PAGER;
s->dptr++;
mutt_extract_token (tmp, s, 0);
break;
}
+ CHECK_PAGER;
if (*s->dptr == '=')
{
s->dptr++;
p);
return 0;
}
+ CHECK_PAGER;
s->dptr++;
mutt_extract_token (tmp, s , 0);