* src/text.c: Upon better thought, elide the unneeded 'to_eof'.
* src/text.c: And elide a totally unused 'strdata2'.
* src/text.c: Rename the undo type UNSPLIT to JOIN, for clarity.
+ * src/global.c, src/rcfile.c: Rename function_type to key_type.
2014-06-18 Mark Majeres <mark@engine12.com>
* src/text.c (add_undo): Don't start a new undo for CUT when the
{
}
-/* Set type of function based on the string. */
-function_type strtokeytype(const char *str)
+/* Set the type of command key based on the string. */
+key_type strtokeytype(const char *str)
{
if (str[0] == '^')
return CONTROL;
typedef enum {
CONTROL, META, FKEY, RAWINPUT
-} function_type;
+} key_type;
typedef enum {
ADD, DEL, BACK, CUT, CUT_EOF, REPLACE,
typedef struct sc {
char *keystr;
/* The shortcut key for a function, ASCII version. */
- function_type type;
- /* What kind of function key it is, for convenience later. */
+ key_type type;
+ /* What kind of command key it is, for convenience later. */
int seq;
/* The actual sequence to check on the type is determined. */
int menu;
const subnfunc *getfuncfromkey(WINDOW *win);
void print_sclist(void);
sc *strtosc(char *input);
-function_type strtokeytype(const char *str);
+key_type strtokeytype(const char *str);
int strtomenu(char *input);
void assign_keyinfo(sc *s);
void xon_complaint(void);
int check_bad_binding(sc *s)
{
#define BADLISTLEN 1
- function_type badtypes[BADLISTLEN] = {META};
+ key_type badtypes[BADLISTLEN] = {META};
int badseqs[BADLISTLEN] = { 91 };
int i;