diff --git a/build.zig b/build.zig index b27f198..d6e7379 100644 --- a/build.zig +++ b/build.zig @@ -386,6 +386,7 @@ pub fn build_exe( tests.root_module.addImport("input", input_mod); tests.root_module.addImport("thespian", thespian_mod); tests.root_module.addImport("log", log_mod); + tests.root_module.addImport("Buffer", Buffer_mod); // b.installArtifact(tests); break :blk b.addRunArtifact(tests); }; diff --git a/src/keybind/keybind.zig b/src/keybind/keybind.zig index 880b7d6..5eb3cc9 100644 --- a/src/keybind/keybind.zig +++ b/src/keybind/keybind.zig @@ -770,7 +770,7 @@ test "match" { } test "json" { - var bindings: BindingSet = .{ .name = "test" }; + var bindings: BindingSet = .{ .name = "test", .selection_style = .normal }; _ = try bindings.process_key_event(input.KeyEvent.from_key('j')); _ = try bindings.process_key_event(input.KeyEvent.from_key('k')); _ = try bindings.process_key_event(input.KeyEvent.from_key('g'));