diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 15:54:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 15:54:29 +0000 |
commit | 2243cfbe7559e6cf48194ff95dcd7eb6df5fe41d (patch) | |
tree | d1cf60483d7b08f01f00610c5e341d26520557c9 /key-bindings.c | |
parent | d644e5143fbce243ddcca468a1b8a1d5bfd21b34 (diff) |
Need to set clients in context before changing their reference count.
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/key-bindings.c b/key-bindings.c index 6909b4b6..0f944c4c 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -266,8 +266,7 @@ key_bindings_dispatch(struct key_binding *bd, struct client *c) struct cmd *cmd; int readonly; - ctx = cmd_get_ctx(); - ctx->curclient = c; + ctx = cmd_get_ctx(NULL, c); ctx->error = key_bindings_error; ctx->print = key_bindings_print; ctx->info = key_bindings_info; |