diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-12-11 19:00:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-12-11 19:19:12 +0000 |
| commit | 2a02ba77a1d021e3af7d4e386db8e2e8c2569943 (patch) | |
| tree | 81c379b1e880ac2ebd99968108254b8c0fec076b /config.c | |
| parent | config: resolve collisions: return ‘false’ on failure (diff) | |
config: resolve collisions: argv_compare() returns -1,0,+1, not a bool
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2024,8 +2024,11 @@ resolve_key_binding_collisions(struct config *conf, const char *section_name, xassert(binding2->action != BIND_ACTION_NONE); if (binding2->action == binding1->action) { - if (argv_compare(&binding1->pipe.argv, &binding2->pipe.argv)) + if (argv_compare( + &binding1->pipe.argv, &binding2->pipe.argv) == 0) + { continue; + } } const struct config_key_modifiers *mods2 = &binding2->modifiers; |
