if (map->op == OP_MACRO)
{
- if (!map->descr)
+ if (!map->desc)
format_line(f, -1, buf, "macro", map->macro);
else
- format_line(f, 1, buf, map->macro, map->descr);
+ format_line(f, 1, buf, map->macro, map->desc);
}
else
{
* @param menu Menu id, e.g. #MENU_EDITOR
* @param op Operation, e.g. OP_DELETE
* @param macro Macro string
- * @param descr Description of macro (OPTIONAL)
+ * @param desc Description of macro (OPTIONAL)
* @param err Buffer for error message
* @retval 0 Success
* @retval -2 Error
* Insert a key sequence into the specified map.
* The map is sorted by ASCII value (lowest to highest)
*/
-static int km_bind_err(char *s, int menu, int op, char *macro, char *descr, struct Buffer *err)
+static int km_bind_err(char *s, int menu, int op, char *macro, char *desc, struct Buffer *err)
{
int retval = 0;
struct Keymap *last = NULL, *next = NULL;
struct Keymap *map = alloc_keys(len, buf);
map->op = op;
map->macro = mutt_str_strdup(macro);
- map->descr = mutt_str_strdup(descr);
+ map->desc = mutt_str_strdup(desc);
struct Keymap *tmp = Keymaps[menu];
next = tmp->next;
FREE(&tmp->macro);
FREE(&tmp->keys);
- FREE(&tmp->descr);
+ FREE(&tmp->desc);
FREE(&tmp);
tmp = next;
} while (tmp && len >= pos);
* @param menu Menu id, e.g. #MENU_EDITOR
* @param op Operation, e.g. OP_DELETE
* @param macro Macro string
- * @param descr Description of macro (OPTIONAL)
+ * @param desc Description of macro (OPTIONAL)
* @retval 0 Success
* @retval -2 Error
*/
-int km_bind(char *s, int menu, int op, char *macro, char *descr)
+int km_bind(char *s, int menu, int op, char *macro, char *desc)
{
- return km_bind_err(s, menu, op, macro, descr, NULL);
+ return km_bind_err(s, menu, op, macro, desc, NULL);
}
/**
next = map->next;
FREE(&map->macro);
- FREE(&map->descr);
+ FREE(&map->desc);
FREE(&map->keys);
FREE(&map);
}
/* type for key storage, the rest of neomutt works fine with int type */
typedef short keycode_t;
-int km_bind(char *s, int menu, int op, char *macro, char *descr);
+int km_bind(char *s, int menu, int op, char *macro, char *desc);
int km_dokey(int menu);
void init_extended_keys(void);
struct Keymap
{
char *macro; /**< macro expansion (op == OP_MACRO) */
- char *descr; /**< description of a macro for the help menu */
+ char *desc; /**< description of a macro for the help menu */
struct Keymap *next; /**< next key in map */
short op; /**< operation to perform */
short eq; /**< number of leading keys equal to next entry */