Merge branch 'neurocyte:master' into vim_keybinds

This commit is contained in:
Luís Tavares 2025-02-05 00:04:45 +00:00 committed by GitHub
commit 8f1f1a9126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 705 additions and 640 deletions

View file

@ -29,7 +29,7 @@ pub fn parse_key_events(allocator: std.mem.Allocator, str: []const u8) ParseErro
var iter = std.mem.tokenizeScalar(u8, item, '+');
loop: while (iter.next()) |part| {
if (part.len == 0) return parse_error("empty part in '{s}'", .{str});
const modsInfo = @typeInfo(input.ModSet).Struct;
const modsInfo = @typeInfo(input.ModSet).@"struct";
inline for (modsInfo.fields) |field| {
if (std.mem.eql(u8, part, field.name)) {
if (@field(mods, field.name)) return parse_error("duplicate modifier '{s}' in '{s}'", .{ part, str });