summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-parse.y
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-23 11:48:22 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-23 11:48:22 +0000
commitcdaed1c111e42c475022866b4d29c3bc2a5f1848 (patch)
tree5a6a76873e90c4aa8d0523682c76f89176085213 /usr.bin/tmux/cmd-parse.y
parent0e25a494f71b09dc1b288d6e06bc9cb48ff71c77 (diff)
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 'usr.bin/tmux/cmd-parse.y')
-rw-r--r--usr.bin/tmux/cmd-parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-parse.y b/usr.bin/tmux/cmd-parse.y
index 5d98dec6133..6d7c7730c82 100644
--- a/usr.bin/tmux/cmd-parse.y
+++ b/usr.bin/tmux/cmd-parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-parse.y,v 1.44 2021/08/23 11:08:26 nicm Exp $ */
+/* $OpenBSD: cmd-parse.y,v 1.45 2021/08/23 11:48:21 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -817,7 +817,6 @@ cmd_parse_build_command(struct cmd_parse_command *cmd,
goto out;
values[count].type = ARGS_COMMANDS;
values[count].cmdlist = pr->cmdlist;
- values[count].cmdlist->references++;
break;
}
count++;