projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
force our cflags in subdirs as well.
[apps/madmutt.git]
/
keymap.c
diff --git
a/keymap.c
b/keymap.c
index
61058f7
..
6a7f5c1
100644
(file)
--- a/
keymap.c
+++ b/
keymap.c
@@
-81,6
+81,9
@@
static struct mapping_t KeyNames[] = {
{"<Space>", ' '},
#ifdef KEY_BTAB
{"<BackTab>", KEY_BTAB},
{"<Space>", ' '},
#ifdef KEY_BTAB
{"<BackTab>", KEY_BTAB},
+#endif
+#ifdef KEY_NEXT
+ {"<Next>", KEY_NEXT},
#endif
{NULL, 0}
};
#endif
{NULL, 0}
};
@@
-134,7
+137,7
@@
static int parse_keycode (const char *s)
return -1;
}
return -1;
}
-static int parsekeys (char *str, keycode_t * d, int max)
+static int parsekeys (c
onst c
har *str, keycode_t * d, int max)
{
int n, len = max;
char buff[SHORT_STRING];
{
int n, len = max;
char buff[SHORT_STRING];
@@
-181,7
+184,7
@@
static int parsekeys (char *str, keycode_t * d, int max)
/* insert a key sequence into the specified map. the map is sorted by ASCII
* value (lowest to highest)
*/
/* insert a key sequence into the specified map. the map is sorted by ASCII
* value (lowest to highest)
*/
-void km_bind (char *s, int menu, int op, char *macro, char *descr)
+void km_bind (c
onst c
har *s, int menu, int op, char *macro, char *descr)
{
struct keymap_t *map, *tmp, *last = NULL, *next;
keycode_t buf[MAX_SEQ];
{
struct keymap_t *map, *tmp, *last = NULL, *next;
keycode_t buf[MAX_SEQ];
@@
-238,7
+241,7
@@
void km_bind (char *s, int menu, int op, char *macro, char *descr)
Keymaps[menu] = map;
}
Keymaps[menu] = map;
}
-void km_bindkey (char *s, int menu, int op)
+void km_bindkey (c
onst c
har *s, int menu, int op)
{
km_bind (s, menu, op, NULL, NULL);
}
{
km_bind (s, menu, op, NULL, NULL);
}
@@
-256,7
+259,7
@@
static int get_op (struct binding_t *bindings, const char *start, size_t len)
return OP_NULL;
}
return OP_NULL;
}
-static char *get_func (struct binding_t *bindings, int op)
+static c
onst c
har *get_func (struct binding_t *bindings, int op)
{
int i;
{
int i;
@@
-318,7
+321,7
@@
static void push_string (char *s)
}
}
}
}
}
}
- mutt_ungetch (*p--, 0);
+ mutt_ungetch (
(unsigned char)
*p--, 0);
}
}
}
}
@@
-454,7
+457,7
@@
static void create_bindings (struct binding_t *map, int menu)
char *km_keyname (int c)
{
static char buf[10];
char *km_keyname (int c)
{
static char buf[10];
- char *p;
+ c
onst c
har *p;
if ((p = mutt_getnamebyvalue (c, KeyNames)))
return p;
if ((p = mutt_getnamebyvalue (c, KeyNames)))
return p;