summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-12 18:32:24 +0000
committernicm <nicm>2015-12-12 18:32:24 +0000
commit5ed17e84faed0a7655ec1eb3de291b60839dcb12 (patch)
tree6d6a92930d40c5ca616505ebba40fc5ac4b4d57b /cmd-set-option.c
parent6a50cf89b40d472cd1f8b439913ca4caddbfd001 (diff)
Add key-table option to set the default key table for a session, allows
different key bindings for different sessions and a few other things.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index e2a4768c..daee62ac 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -183,6 +183,10 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq)
w->active->flags |= PANE_CHANGED;
}
}
+ if (strcmp(oe->name, "key-table") == 0) {
+ TAILQ_FOREACH(c, &clients, entry)
+ server_client_set_key_table(c, NULL);
+ }
if (strcmp(oe->name, "status") == 0 ||
strcmp(oe->name, "status-interval") == 0)
status_timer_start_all();