diff options
Diffstat (limited to 'input/cmd_list.c')
-rw-r--r-- | input/cmd_list.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index 9d4409ed8e..24ef6e7a0e 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -285,6 +285,12 @@ bool mp_input_is_abort_cmd(struct mp_cmd *cmd) return false; } +bool mp_input_is_repeatable_cmd(struct mp_cmd *cmd) +{ + return (cmd->def && cmd->def->allow_auto_repeat) || + cmd->id == MP_CMD_COMMAND_LIST; +} + void mp_print_cmd_list(struct mp_log *out) { for (int i = 0; mp_cmds[i].name; i++) { |