fix: skip to next binding on parse error

This commit is contained in:
CJ van den Berg 2024-11-15 22:33:06 +01:00
parent 376d14353a
commit 2893347da7
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -503,8 +503,8 @@ const BindingSet = struct {
switch (state) { switch (state) {
.key_event => { .key_event => {
keys = parse_key_events(self.allocator, token) catch |e| { keys = parse_key_events(self.allocator, token) catch |e| {
self.logger.print_err("keybind.load", "ERROR: {s} {s}", .{@errorName(e), parse_error_message}); self.logger.print_err("keybind.load", "ERROR: {s} {s}", .{ @errorName(e), parse_error_message });
return e; break;
}; };
state = .command; state = .command;
}, },