diff options
author | wm4 <wm4@nowhere> | 2013-05-18 13:18:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-18 17:45:55 +0200 |
commit | 541fe30ba9c4f9bec936e4a8f3a478e9ed6f8156 (patch) | |
tree | 6a8cc7021bb1470dcba1a85fa406a768bfbd2d8e | |
parent | 58cc0f637f13d2eeeeb3c24aed4b72fc02a4cbc7 (diff) | |
download | mpv-541fe30ba9c4f9bec936e4a8f3a478e9ed6f8156.tar.bz2 mpv-541fe30ba9c4f9bec936e4a8f3a478e9ed6f8156.tar.xz |
input: allow quotes around any input command
-rw-r--r-- | core/input/input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/input/input.c b/core/input/input.c index 3861a6e8c0..24bba1c14a 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -865,9 +865,7 @@ mp_cmd_t *mp_input_parse_cmd(bstr str, const char *loc) cmd->nargs++; str = bstr_lstrip(str); bstr arg = {0}; - if (cmdarg->type.type == &m_option_type_string && - bstr_eatstart0(&str, "\"")) - { + if (bstr_eatstart0(&str, "\"")) { if (!read_escaped_string(tmp, &str, &arg)) { mp_tmsg(MSGT_INPUT, MSGL_ERR, "Command %s: argument %d " "has broken string escapes.\n", cmd->name, i + 1); |