Stub out all users of old API.

This commit is contained in:
Your Name
2026-06-30 09:39:45 +01:00
parent b8a62979ac
commit 9e8cf6f0e2
14 changed files with 161 additions and 43 deletions

View File

@@ -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);