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 /cmd-command-prompt.c | |
parent | d644e5143fbce243ddcca468a1b8a1d5bfd21b34 (diff) |
Need to set clients in context before changing their reference count.
Diffstat (limited to 'cmd-command-prompt.c')
-rw-r--r-- | cmd-command-prompt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index 68573195..80407b7d 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -184,8 +184,7 @@ cmd_command_prompt_callback(void *data, const char *s) return (0); } - 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; |