diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-01-21 08:40:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-01-21 08:40:10 +0000 |
commit | 81fb1528cdaec5b3d9d2f1244cf56c5272343b3e (patch) | |
tree | d2db32ed0a0d26ffacbe7c2b3a19b72e665c4cd5 /usr.bin/tmux/tmux.h | |
parent | 90b9a86500506e817f10ec8f397849189239f0b2 (diff) |
Drop the ability to have a list of keys in the prefix in favour of two
separate options, prefix and prefix2. This simplifies the code and gets
rid the data options type which was only used for this one option.
Also add a -2 flag to send-prefix to send the secondary prefix key,
fixing a cause of minor irritation.
People who want three prefix keys are out of luck :-).
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index b4e2bd4b309..d63165001c5 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.304 2012/01/21 08:10:21 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.305 2012/01/21 08:40:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -673,9 +673,6 @@ struct options_entry { char *str; long long num; - void *data; - - void (*freefn)(void *); SPLAY_ENTRY(options_entry) entry; }; @@ -685,9 +682,6 @@ struct options { struct options *parent; }; -/* Key list for prefix option. */ -ARRAY_DECL(keylist, int); - /* Scheduled job. */ struct job { char *cmd; @@ -1294,7 +1288,7 @@ SPLAY_HEAD(key_bindings, key_binding); enum options_table_type { OPTIONS_TABLE_STRING, OPTIONS_TABLE_NUMBER, - OPTIONS_TABLE_KEYS, + OPTIONS_TABLE_KEY, OPTIONS_TABLE_COLOUR, OPTIONS_TABLE_ATTRIBUTES, OPTIONS_TABLE_FLAG, @@ -1413,9 +1407,6 @@ char *options_get_string(struct options *, const char *); struct options_entry *options_set_number( struct options *, const char *, long long); long long options_get_number(struct options *, const char *); -struct options_entry *options_set_data( - struct options *, const char *, void *, void (*)(void *)); -void *options_get_data(struct options *, const char *); /* options-table.c */ extern const struct options_table_entry server_options_table[]; |