mirror of
https://github.com/tmux/tmux.git
synced 2026-10-13 06:04:34 +00:00
Stub out all users of old API.
This commit is contained in:
@@ -434,7 +434,9 @@ window_switch_run_command(struct window_switch_modedata *data, struct client *c)
|
||||
char *target = NULL;
|
||||
struct cmdq_state *state;
|
||||
char *command, *error;
|
||||
#if 0 /* XXX: command parser conversion */
|
||||
enum cmd_parse_status status;
|
||||
#endif
|
||||
|
||||
if (data->matches_size == 0)
|
||||
return (0);
|
||||
@@ -466,6 +468,7 @@ window_switch_run_command(struct window_switch_modedata *data, struct client *c)
|
||||
command = cmd_template_replace(data->command, target, 1);
|
||||
if (command != NULL && *command != '\0') {
|
||||
state = cmdq_new_state(&fs, NULL, 0);
|
||||
#if 0 /* XXX: command parser conversion */
|
||||
status = cmd_parse_and_append(command, NULL, c, state, &error);
|
||||
if (status == CMD_PARSE_ERROR) {
|
||||
if (c != NULL) {
|
||||
@@ -474,6 +477,14 @@ window_switch_run_command(struct window_switch_modedata *data, struct client *c)
|
||||
}
|
||||
free(error);
|
||||
}
|
||||
#else
|
||||
error = xstrdup("XXX: command parser conversion not done for window switch");
|
||||
if (c != NULL) {
|
||||
*error = toupper((u_char)*error);
|
||||
status_message_set(c, -1, 1, 0, 0, "%s", error);
|
||||
}
|
||||
free(error);
|
||||
#endif
|
||||
cmdq_free_state(state);
|
||||
}
|
||||
free(command);
|
||||
|
||||
Reference in New Issue
Block a user