summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c
index 4fe0e5297c..f77dddfa91 100644
--- a/input/input.c
+++ b/input/input.c
@@ -1536,7 +1536,8 @@ int mp_input_get_key_from_name(const char *name)
const char *p;
while ((p = strchr(name, '+'))) {
for (struct key_name *m = modifier_names; m->name; m++)
- if (!bstrcasecmp(BSTR(m->name), (struct bstr){(char *)name, p - name})) {
+ if (!bstrcasecmp(bstr(m->name),
+ (struct bstr){(char *)name, p - name})) {
modifiers |= m->key;
goto found;
}