aboutsummaryrefslogtreecommitdiff
path: root/cmd-confirm-before.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-20 10:25:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-20 10:25:15 +0000
commitafd5e978cf8dca6dcd824b224ce798f6b7522605 (patch)
tree2075e930d58916d8b96da6bf1e42c299944ab3d7 /cmd-confirm-before.c
parente68b9abd0403d09c6af993427482e27c0f308765 (diff)
downloadrtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.tar.gz
rtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.tar.bz2
rtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.zip
Need to set clients in context before changing their reference count.
Diffstat (limited to 'cmd-confirm-before.c')
-rw-r--r--cmd-confirm-before.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c
index 067b5e7a..0b41592b 100644
--- a/cmd-confirm-before.c
+++ b/cmd-confirm-before.c
@@ -125,8 +125,7 @@ cmd_confirm_before_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;