Stop caring about empty commands, just treat as a null command.

This commit is contained in:
nicm
2021-08-21 17:25:32 +00:00
parent 68cacaec68
commit 5241dae87d
9 changed files with 16 additions and 30 deletions

View File

@ -1185,9 +1185,6 @@ window_customize_set_command_callback(struct client *c, void *itemdata,
pr = cmd_parse_from_string(s, NULL);
switch (pr->status) {
case CMD_PARSE_EMPTY:
error = xstrdup("empty command");
goto fail;
case CMD_PARSE_ERROR:
error = pr->error;
goto fail;