mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
config: parse_key_binding_section(): use provided action-map
Don’t call has_key_binding_collisions() with ‘binding_action_map’ unconditionally; use the provided ‘action_map’ instead. This fixes wrong error messages for key combo collisions in key binding sections other than the regular “key-bindings”.
This commit is contained in:
parent
6e782271ff
commit
5dbeb5ce27
2 changed files with 3 additions and 1 deletions
|
|
@ -37,6 +37,8 @@
|
||||||
* Crash caused by a double free originating in `XTSMGRAPHICS` - set
|
* Crash caused by a double free originating in `XTSMGRAPHICS` - set
|
||||||
number of color registers
|
number of color registers
|
||||||
(https://codeberg.org/dnkl/foot/issues/427).
|
(https://codeberg.org/dnkl/foot/issues/427).
|
||||||
|
* Wrong action referenced in error message for key binding collisions
|
||||||
|
(https://codeberg.org/dnkl/foot/issues/432).
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
2
config.c
2
config.c
|
|
@ -1393,7 +1393,7 @@ parse_key_binding_section(
|
||||||
if (!parse_key_combos(
|
if (!parse_key_combos(
|
||||||
conf, value, &key_combos, section, key, path, lineno) ||
|
conf, value, &key_combos, section, key, path, lineno) ||
|
||||||
has_key_binding_collisions(
|
has_key_binding_collisions(
|
||||||
conf, action, binding_action_map, bindings, &key_combos,
|
conf, action, action_map, bindings, &key_combos,
|
||||||
path, lineno))
|
path, lineno))
|
||||||
{
|
{
|
||||||
free(pipe_argv);
|
free(pipe_argv);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue