summaryrefslogtreecommitdiffstats
path: root/tmux.c
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.c
parentd4c2a935f2039e00a7a7384fa0427a6126111611 (diff)
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.c')
-rw-r--r--tmux.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/tmux.c b/tmux.c
index 76e808e0..7ec8c20f 100644
--- a/tmux.c
+++ b/tmux.c
@@ -235,7 +235,6 @@ int
main(int argc, char **argv)
{
struct passwd *pw;
- struct keylist *keylist;
char *s, *path, *label, *home, **var;
int opt, flags, quiet, keys;
@@ -335,12 +334,6 @@ main(int argc, char **argv)
options_init(&global_w_options, NULL);
options_table_populate_tree(window_options_table, &global_w_options);
- /* Set the prefix option (its a list, so not in the table). */
- keylist = xmalloc(sizeof *keylist);
- ARRAY_INIT(keylist);
- ARRAY_ADD(keylist, '\002');
- options_set_data(&global_s_options, "prefix", keylist, xfree);
-
/* Enable UTF-8 if the first client is on UTF-8 terminal. */
if (flags & IDENTIFY_UTF8) {
options_set_number(&global_s_options, "status-utf8", 1);