diff options
author | Kevin McCarthy <kevin@8t8.us> | 2021-07-25 14:45:56 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2021-07-28 15:02:11 -0700 |
commit | 4021ab59f021abd84742ae36895158c7129cbb38 (patch) | |
tree | d2a4baa2debdffcfe49de40237ec52f8969c49c2 /help.c | |
parent | f4ff768c2764502a974042e1fe9d861a7a92fbcf (diff) |
Break the menu OPS/funcs and keybindings into separate tables.
Move the "extra" keybindings added manually inside km_init() into the
keybinding tables instead.
This allows the documentation in the manual to be generated correctly.
It also corrects a small problem with duplicate OPS in the struct
binding_t table. The exec completion and unbound list in the help
menu iterated the active binding_t table and assumed each OP appears
only once. When '\n' and '\r' were both added to the binding_t table,
this broke the assumption and caused those to misbehave.
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -31,10 +31,10 @@ #include <ctype.h> #include <string.h> -static const struct binding_t *help_lookupFunction (int op, int menu) +static const struct menu_func_op_t *help_lookupFunction (int op, int menu) { int i; - const struct binding_t *map; + const struct menu_func_op_t *map; if (menu != MENU_PAGER) { @@ -286,7 +286,7 @@ static void format_line (FILE *f, int ismacro, static void dump_menu (FILE *f, int menu) { struct keymap_t *map; - const struct binding_t *b; + const struct menu_func_op_t *b; char buf[SHORT_STRING]; /* browse through the keymap table */ @@ -322,7 +322,7 @@ static int is_bound (struct keymap_t *map, int op) } static void dump_unbound (FILE *f, - const struct binding_t *funcs, + const struct menu_func_op_t *funcs, struct keymap_t *map, struct keymap_t *aux) { @@ -342,7 +342,7 @@ void mutt_help (int menu) char buf[SHORT_STRING]; const char *desc; FILE *f; - const struct binding_t *funcs; + const struct menu_func_op_t *funcs; /* We don't use the buffer pool because of the extended lifetime of t */ t = mutt_buffer_new (); |