conf: bindings: case insensitive matching against 'none'

This commit is contained in:
Daniel Eklöf 2020-03-18 14:52:04 +01:00
parent 6d30e7d15d
commit c87cec8c1e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 8 additions and 8 deletions

View file

@ -507,7 +507,7 @@ parse_section_key_bindings(
if (strcmp(key, binding_action_map[action]) != 0)
continue;
if (strcmp(value, "NONE") == 0) {
if (strcasecmp(value, "none") == 0) {
free(conf->bindings.key[action]);
conf->bindings.key[action] = NULL;
return true;