aboutsummaryrefslogtreecommitdiff
path: root/cmd-bind-key.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-13 08:09:47 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-13 08:09:47 +0100
commit6551f4bb3b651aa2dba77a98cc42828737b88306 (patch)
tree82dd6cbba583e9d4bc58a9334a8b74713d94da89 /cmd-bind-key.c
parent76a9e6f27bb0c7b547989c3b80cf8cc0a148064d (diff)
parente0add119ea4a6c8d40905a7ad1f7bc3553d20ccc (diff)
downloadrtmux-6551f4bb3b651aa2dba77a98cc42828737b88306.tar.gz
rtmux-6551f4bb3b651aa2dba77a98cc42828737b88306.tar.bz2
rtmux-6551f4bb3b651aa2dba77a98cc42828737b88306.zip
Merge branch 'obsd-master'
Conflicts: paste.c
Diffstat (limited to 'cmd-bind-key.c')
-rw-r--r--cmd-bind-key.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd-bind-key.c b/cmd-bind-key.c
index 69314788..b87d5245 100644
--- a/cmd-bind-key.c
+++ b/cmd-bind-key.c
@@ -120,11 +120,9 @@ cmd_bind_key_mode_table(struct cmd *self, struct cmd_q *cmdq, key_code key)
}
mtmp.key = key;
- mtmp.mode = !!args_has(args, 'c');
if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) == NULL) {
mbind = xmalloc(sizeof *mbind);
mbind->key = mtmp.key;
- mbind->mode = mtmp.mode;
RB_INSERT(mode_key_tree, mtab->tree, mbind);
}
mbind->cmd = cmd;