From: Richard Russon Date: Fri, 18 Jan 2019 02:32:41 +0000 (+0000) Subject: index.c move data X-Git-Tag: 2019-10-25~372^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=520262180e6fcc6cdd763da9a0b4f343d2dd46b0;p=neomutt index.c move data --- diff --git a/index.c b/index.c index c4b3fce3d..4b562fe30 100644 --- a/index.c +++ b/index.c @@ -114,6 +114,32 @@ static const char *Function_not_permitted_in_attach_message_mode = N_("Function not permitted in attach-message mode"); static const char *NoVisible = N_("No visible messages"); +static const struct Mapping IndexHelp[] = { + { N_("Quit"), OP_QUIT }, + { N_("Del"), OP_DELETE }, + { N_("Undel"), OP_UNDELETE }, + { N_("Save"), OP_SAVE }, + { N_("Mail"), OP_MAIL }, + { N_("Reply"), OP_REPLY }, + { N_("Group"), OP_GROUP_REPLY }, + { N_("Help"), OP_HELP }, + { NULL, 0 }, +}; + +#ifdef USE_NNTP +struct Mapping IndexNewsHelp[] = { + { N_("Quit"), OP_QUIT }, + { N_("Del"), OP_DELETE }, + { N_("Undel"), OP_UNDELETE }, + { N_("Save"), OP_SAVE }, + { N_("Post"), OP_POST }, + { N_("Followup"), OP_FOLLOWUP }, + { N_("Catchup"), OP_CATCHUP }, + { N_("Help"), OP_HELP }, + { NULL, 0 }, +}; +#endif + #define CHECK_IN_MAILBOX \ if (!Context) \ { \ @@ -907,32 +933,6 @@ dsl_finish: FREE(&syntax); } -static const struct Mapping IndexHelp[] = { - { N_("Quit"), OP_QUIT }, - { N_("Del"), OP_DELETE }, - { N_("Undel"), OP_UNDELETE }, - { N_("Save"), OP_SAVE }, - { N_("Mail"), OP_MAIL }, - { N_("Reply"), OP_REPLY }, - { N_("Group"), OP_GROUP_REPLY }, - { N_("Help"), OP_HELP }, - { NULL, 0 }, -}; - -#ifdef USE_NNTP -struct Mapping IndexNewsHelp[] = { - { N_("Quit"), OP_QUIT }, - { N_("Del"), OP_DELETE }, - { N_("Undel"), OP_UNDELETE }, - { N_("Save"), OP_SAVE }, - { N_("Post"), OP_POST }, - { N_("Followup"), OP_FOLLOWUP }, - { N_("Catchup"), OP_CATCHUP }, - { N_("Help"), OP_HELP }, - { NULL, 0 }, -}; -#endif - /** * index_custom_redraw - Redraw the index - Implements Menu::menu_custom_redraw() */