aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-01-21 19:36:40 +0000
committerTiago Cunha <tcunha@gmx.com>2012-01-21 19:36:40 +0000
commita7b0b30bdd73f3a8d513fc69daf593174ee03145 (patch)
treedc44cb8d870c4786d9349be8ce123098d022d9f2 /tmux.h
parentd4c2a935f2039e00a7a7384fa0427a6126111611 (diff)
downloadrtmux-a7b0b30bdd73f3a8d513fc69daf593174ee03145.tar.gz
rtmux-a7b0b30bdd73f3a8d513fc69daf593174ee03145.tar.bz2
rtmux-a7b0b30bdd73f3a8d513fc69daf593174ee03145.zip
Sync OpenBSD patchset 1007:
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 'tmux.h')
-rw-r--r--tmux.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/tmux.h b/tmux.h
index b52f1b66..22d7af65 100644
--- a/tmux.h
+++ b/tmux.h
@@ -669,9 +669,6 @@ struct options_entry {
char *str;
long long num;
- void *data;
-
- void (*freefn)(void *);
SPLAY_ENTRY(options_entry) entry;
};
@@ -681,9 +678,6 @@ struct options {
struct options *parent;
};
-/* Key list for prefix option. */
-ARRAY_DECL(keylist, int);
-
/* Scheduled job. */
struct job {
char *cmd;
@@ -1290,7 +1284,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,
@@ -1409,9 +1403,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[];