mirror of
https://github.com/tmux/tmux.git
synced 2026-10-13 22:34:23 +00:00
Stub out all users of old API.
This commit is contained in:
@@ -1218,7 +1218,6 @@ window_customize_set_command_callback(struct client *c, void *itemdata,
|
||||
struct window_customize_itemdata *item = itemdata;
|
||||
struct window_customize_modedata *data = item->data;
|
||||
struct key_binding *bd;
|
||||
struct cmd_parse_result *pr;
|
||||
char *error;
|
||||
|
||||
if (s == NULL || *s == '\0' || data->dead)
|
||||
@@ -1226,6 +1225,9 @@ window_customize_set_command_callback(struct client *c, void *itemdata,
|
||||
if (item == NULL || !window_customize_get_key(item, NULL, &bd))
|
||||
return (PROMPT_CLOSE);
|
||||
|
||||
#if 0 /* XXX: command parser conversion */
|
||||
struct cmd_parse_result *pr;
|
||||
|
||||
pr = cmd_parse_from_string(s, NULL);
|
||||
switch (pr->status) {
|
||||
case CMD_PARSE_ERROR:
|
||||
@@ -1240,6 +1242,10 @@ window_customize_set_command_callback(struct client *c, void *itemdata,
|
||||
mode_tree_build(data->data);
|
||||
mode_tree_draw(data->data);
|
||||
data->wp->flags |= PANE_REDRAW;
|
||||
#else
|
||||
error = xstrdup("XXX: command parser conversion not done for customize");
|
||||
goto fail;
|
||||
#endif
|
||||
|
||||
return (PROMPT_CLOSE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user