Skip to content

Commit

Permalink
input/cmd: increase the command length for --input-cmdlist
Browse files Browse the repository at this point in the history
--input-cmdlist crops playlist-next-playlist, playlist-prev-playlist,
write-watch-later-config and delete-watch-later-config, so increase the
string length to that of the longest command.

Also stop specifying both the minimum and maximum length since they are
the same.
  • Loading branch information
guidocella committed Nov 14, 2024
1 parent 1c3f092 commit f88fbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ void mp_print_cmd_list(struct mp_log *out)
{
for (int i = 0; mp_cmds[i].name; i++) {
const struct mp_cmd_def *def = &mp_cmds[i];
mp_info(out, "%-20.20s", def->name);
mp_info(out, "%-25s", def->name);
for (int j = 0; j < MP_CMD_DEF_MAX_ARGS && def->args[j].type; j++) {
const struct m_option *arg = &def->args[j];
bool is_opt = arg->defval || (arg->flags & MP_CMD_OPT_ARG);
Expand Down

0 comments on commit f88fbf4

Please sign in to comment.