summaryrefslogtreecommitdiffstats
path: root/cmd-bind-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-bind-key.c')
-rw-r--r--cmd-bind-key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-bind-key.c b/cmd-bind-key.c
index 4a6c8541..bb905bce 100644
--- a/cmd-bind-key.c
+++ b/cmd-bind-key.c
@@ -75,6 +75,7 @@ cmd_bind_key_exec(struct cmd *self, struct cmdq_item *item)
value = args_value(args, 1);
if (count == 2 && value->type == ARGS_COMMANDS) {
key_bindings_add(tablename, key, note, repeat, value->cmdlist);
+ value->cmdlist->references++;
return (CMD_RETURN_NORMAL);
}