mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Remove unnecessary initializers of cmd_ctx.
This commit is contained in:
parent
255a4f8ce3
commit
693244795c
@ -185,10 +185,7 @@ cmd_command_prompt_callback(void *data, const char *s)
|
||||
}
|
||||
|
||||
ctx = cmd_get_ctx();
|
||||
ctx->msgdata = NULL;
|
||||
ctx->curclient = c;
|
||||
ctx->cmdclient = NULL;
|
||||
|
||||
ctx->error = key_bindings_error;
|
||||
ctx->print = key_bindings_print;
|
||||
ctx->info = key_bindings_info;
|
||||
|
@ -126,10 +126,7 @@ cmd_confirm_before_callback(void *data, const char *s)
|
||||
}
|
||||
|
||||
ctx = cmd_get_ctx();
|
||||
ctx->msgdata = NULL;
|
||||
ctx->curclient = c;
|
||||
ctx->cmdclient = NULL;
|
||||
|
||||
ctx->error = key_bindings_error;
|
||||
ctx->print = key_bindings_print;
|
||||
ctx->info = key_bindings_info;
|
||||
|
@ -109,10 +109,7 @@ control_callback(struct client *c, int closed, unused void *data)
|
||||
}
|
||||
|
||||
ctx = cmd_get_ctx();
|
||||
ctx->msgdata = NULL;
|
||||
ctx->cmdclient = NULL;
|
||||
ctx->curclient = c;
|
||||
|
||||
ctx->error = control_msg_error;
|
||||
ctx->print = control_msg_print;
|
||||
ctx->info = control_msg_info;
|
||||
|
@ -267,10 +267,7 @@ key_bindings_dispatch(struct key_binding *bd, struct client *c)
|
||||
int readonly;
|
||||
|
||||
ctx = cmd_get_ctx();
|
||||
ctx->msgdata = NULL;
|
||||
ctx->cmdclient = NULL;
|
||||
ctx->curclient = c;
|
||||
|
||||
ctx->error = key_bindings_error;
|
||||
ctx->print = key_bindings_print;
|
||||
ctx->info = key_bindings_info;
|
||||
|
@ -871,9 +871,7 @@ server_client_msg_command(struct client *c, struct msg_command_data *data)
|
||||
|
||||
ctx = cmd_get_ctx();
|
||||
ctx->msgdata = data;
|
||||
ctx->curclient = NULL;
|
||||
ctx->cmdclient = c;
|
||||
|
||||
ctx->error = server_client_msg_error;
|
||||
ctx->print = server_client_msg_print;
|
||||
ctx->info = server_client_msg_info;
|
||||
|
@ -221,10 +221,7 @@ window_choose_data_run(struct window_choose_data *cdata)
|
||||
}
|
||||
|
||||
ctx = cmd_get_ctx();
|
||||
ctx->msgdata = NULL;
|
||||
ctx->curclient = cdata->start_client;
|
||||
ctx->cmdclient = NULL;
|
||||
|
||||
ctx->error = key_bindings_error;
|
||||
ctx->print = key_bindings_print;
|
||||
ctx->info = key_bindings_info;
|
||||
|
Loading…
Reference in New Issue
Block a user