mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
config: resolve collisions: argv_compare() returns -1,0,+1, not a bool
This commit is contained in:
parent
17250ec393
commit
2a02ba77a1
1 changed files with 4 additions and 1 deletions
5
config.c
5
config.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue