;
if (pp >= s)
{
+ if ((i = parse_fkey (pp)) > 0)
+ {
+ mutt_ungetch (KEY_F (i), 0);
+ p = pp - 1;
+ continue;
+ }
+
l = p - pp + 1;
for (i = 0; KeyNames[i].name; i++)
{
void menu_check_recenter (MUTTMENU *menu)
{
- if (menu->max <= menu->pagelen)
+ if (menu->max <= menu->pagelen && menu->top != 0)
{
menu->top = 0;
set_option (OPTNEEDREDRAW);
+ menu->redraw |= REDRAW_INDEX;
}
else if (menu->current >= menu->top + menu->pagelen)
{
menu->top = menu->current - menu->pagelen + 1;
else
menu->top += menu->pagelen * ((menu->current - menu->top) / menu->pagelen);
+ menu->redraw |= REDRAW_INDEX;
}
else if (menu->current < menu->top)
{
if (menu->top < 0)
menu->top = 0;
}
+ menu->redraw |= REDRAW_INDEX;
}
- menu->redraw |= REDRAW_INDEX;
}
void menu_jump (MUTTMENU *menu)
#include <sys/stat.h>
#include <sys/wait.h>
+#include <locale.h>
+
#ifdef _PGPPATH
struct pgp_cache
FILE *tempfp = NULL;
BODY *pbody;
int i, killfrom = 0;
- struct stat st;
#ifdef _PGPPATH
BODY *save_content = NULL;
goto main_loop;
}
- /* Do FCC checking before any real processing happens, so we
- * don't have to do too much clean-up work.
- */
-
- mutt_expand_path (fcc, sizeof (fcc));
- if (*fcc && mutt_strcmp ("/dev/null", fcc) != 0 &&
- !option (OPTNOCURSES) && !(flags & SENDMAILX) &&
- !mutt_save_confirm (fcc, &st))
- {
- mutt_clear_error ();
- goto main_loop;
- }
-
if (msg->content->next)
msg->content = mutt_make_multipart (msg->content);
/* save a copy of the message, if necessary. */
+ mutt_expand_path (fcc, sizeof (fcc));
if (*fcc && mutt_strcmp ("/dev/null", fcc) != 0)
{
BODY *tmpbody = msg->content;