diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-12-12 20:01:15 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-12-12 20:01:15 +0000 |
commit | 845a664bb2d06ac1cdc0af37d753d107f4353955 (patch) | |
tree | bdd2832180ef678265972308ed08e71ab0bbab60 /cmd-set-option.c | |
parent | 5a5db02b8514eff40b97b3f3e4e85a3d948b57da (diff) | |
parent | 5ed17e84faed0a7655ec1eb3de291b60839dcb12 (diff) | |
download | rtmux-845a664bb2d06ac1cdc0af37d753d107f4353955.tar.gz rtmux-845a664bb2d06ac1cdc0af37d753d107f4353955.tar.bz2 rtmux-845a664bb2d06ac1cdc0af37d753d107f4353955.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 7de91aa2..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(); @@ -396,7 +400,8 @@ cmd_set_option_key(__unused struct cmd *self, struct cmd_q *cmdq, { key_code key; - if ((key = key_string_lookup_string(value)) == KEYC_NONE) { + key = key_string_lookup_string(value); + if (key == KEYC_UNKNOWN) { cmdq_error(cmdq, "bad key: %s", value); return (NULL); } |