From 3d81631679aa36a4ab0e8e650fe6c99cb3d3eba9 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 24 Feb 2026 23:16:23 +0100 Subject: [PATCH] refactor: add binding set on_match_failure nothing mode --- src/keybind/keybind.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keybind/keybind.zig b/src/keybind/keybind.zig index eb3df1a..fd6b444 100644 --- a/src/keybind/keybind.zig +++ b/src/keybind/keybind.zig @@ -485,7 +485,7 @@ const BindingSet = struct { deinit_command: ?Command = null, const KeySyntax = enum { flow, vim }; - const OnMatchFailure = enum { insert, ignore }; + const OnMatchFailure = enum { insert, ignore, nothing }; fn load(allocator: std.mem.Allocator, namespace_name: []const u8, config_section: []const u8, mode_bindings: std.json.Value, fallback: ?*const BindingSet, namespace: *Namespace) (error{ OutOfMemory, WriteFailed } || parse_flow.ParseError || parse_vim.ParseError || std.json.ParseFromValueError)!@This() { var self: @This() = .{ .name = undefined, .config_section = config_section, .selection_style = undefined }; @@ -787,6 +787,7 @@ const BindingSet = struct { else log_keyhints_message(), .ignore => log_keyhints_message(), + .nothing => {}, } globals.current_sequence.clearRetainingCapacity(); globals.current_sequence_egc.clearRetainingCapacity();