diff options
author | nicm <nicm> | 2021-08-23 11:48:21 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-23 11:48:21 +0000 |
commit | 03b83a5a34a4257be9029e1f5195dcddcd531caa (patch) | |
tree | 42d487b8be05e6e2341fb80fb6dbaad925eb79f1 /cmd-bind-key.c | |
parent | 1f0c0914c75980069c6f78872bdee5ceb0ef64e2 (diff) | |
download | rtmux-03b83a5a34a4257be9029e1f5195dcddcd531caa.tar.gz rtmux-03b83a5a34a4257be9029e1f5195dcddcd531caa.tar.bz2 rtmux-03b83a5a34a4257be9029e1f5195dcddcd531caa.zip |
Key bindings steal a reference to the command instead of adding their
own, it was correct not to add a reference when parsing, but the
bind-key then needs to add one.
Diffstat (limited to 'cmd-bind-key.c')
-rw-r--r-- | cmd-bind-key.c | 1 |
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); } |