projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use m_tempfile and better errors msg
[apps/madmutt.git]
/
keymap.c
diff --git
a/keymap.c
b/keymap.c
index
51a296f
..
7be6869
100644
(file)
--- a/
keymap.c
+++ b/
keymap.c
@@
-36,19
+36,15
@@
struct mapping_t Menus[] = {
{"key_select_smime", MENU_KEY_SELECT_SMIME},
#endif
{"key_select_smime", MENU_KEY_SELECT_SMIME},
#endif
-
#ifdef MIXMASTER
{"mix", MENU_MIX},
#endif
#ifdef MIXMASTER
{"mix", MENU_MIX},
#endif
-
{"query", MENU_QUERY},
{"generic", MENU_GENERIC},
{NULL, 0}
};
{"query", MENU_QUERY},
{"generic", MENU_GENERIC},
{NULL, 0}
};
-#define mutt_check_menu(s) mutt_getvaluebyname(s, Menus)
-
static struct mapping_t KeyNames[] = {
{"<PageUp>", KEY_PPAGE},
{"<PageDown>", KEY_NPAGE},
static struct mapping_t KeyNames[] = {
{"<PageUp>", KEY_PPAGE},
{"<PageDown>", KEY_NPAGE},
@@
-673,7
+669,7
@@
static char *parse_keymap (int *menu, BUFFER * s, int maxmenus, int *nummenus,
if (q)
*q = '\0';
if (q)
*q = '\0';
- if ((menu[i] = mutt_
check_menu (p
)) == -1) {
+ if ((menu[i] = mutt_
getvaluebyname(p, Menus
)) == -1) {
snprintf (err->data, err->dsize, _("%s: no such menu"), p);
goto error;
}
snprintf (err->data, err->dsize, _("%s: no such menu"), p);
goto error;
}