summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-07-28 11:09:30 +0300
committeravih <avih@users.noreply.github.com>2021-07-30 09:52:34 +0300
commit73c9509720e59aec059e206506c0cf461d635c9f (patch)
tree0239b0cf2dba44db8c8e2ac94d19c64077c98ad5 /input
parent3f0e8bd506e3e3fc6eb9927f0b2d04b23e9105a2 (diff)
downloadmpv-73c9509720e59aec059e206506c0cf461d635c9f.tar.bz2
mpv-73c9509720e59aec059e206506c0cf461d635c9f.tar.xz
input: argument custom quotes: use ` instead of !
Custom quotes were added in 4f129a3e and began with !, however, this required quoting "!reverse" (used for the cycle-values command), which is inconvenient, and was not taken into account when ! was chosen for custom quotes. Also, ` is more natural for quoting than !. This does break backward compatibility with the earlier form of custom quotes, but at least we didn't make a release yet since custom quotes were added (the last release - 0.33[.1] doesn't support it).
Diffstat (limited to 'input')
-rw-r--r--input/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input/cmd.c b/input/cmd.c
index 3d3b7c6587..9f0c758b0c 100644
--- a/input/cmd.c
+++ b/input/cmd.c
@@ -341,8 +341,8 @@ static int pctx_read_token(struct parse_ctx *ctx, bstr *out)
}
return 1;
}
- if (ctx->start.len > 1 && bstr_eatstart0(&ctx->str, "!")) {
- char endquote[2] = {ctx->str.start[0], '!'};
+ if (ctx->start.len > 1 && bstr_eatstart0(&ctx->str, "`")) {
+ char endquote[2] = {ctx->str.start[0], '`'};
ctx->str = bstr_cut(ctx->str, 1);
int next = bstr_find(ctx->str, (bstr){endquote, 2});
if (next < 0) {