Skip to content

Commit

Permalink
command: quote input key names in log
Browse files Browse the repository at this point in the history
  • Loading branch information
na-na-hi committed Nov 1, 2024
1 parent 0ab46cd commit 1b85ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -6612,7 +6612,7 @@ static void cmd_key(void *p)
} else {
int code = mp_input_get_key_from_name(key_name);
if (code < 0) {
MP_ERR(mpctx, "%s is not a valid input name.\n", key_name);
MP_ERR(mpctx, "'%s' is not a valid input name.\n", key_name);
cmd->success = false;
return;
}
Expand All @@ -6632,7 +6632,7 @@ static void cmd_key_bind(void *p)
if (comment && !comment[0])
comment = NULL;
if (!mp_input_bind_key(mpctx->input, key, bstr0(target_cmd), comment)) {
MP_ERR(mpctx, "%s is not a valid input name.\n", key);
MP_ERR(mpctx, "'%s' is not a valid input name.\n", key);
cmd->success = false;
}
}
Expand Down

0 comments on commit 1b85ef2

Please sign in to comment.