refactor: simplify keybind mode create

This commit is contained in:
CJ van den Berg 2024-10-27 19:05:03 +01:00
parent 525287c7ac
commit ac56635f7b
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
11 changed files with 13 additions and 21 deletions

View file

@ -43,7 +43,7 @@ pub fn create(allocator: Allocator, _: command.Context) !struct { tui.Mode, tui.
};
return .{
.{
.input_handler = keybind.mode.mini.find_in_files.create(allocator),
.input_handler = keybind.mode.mini.find_in_files.create(),
.event_handler = EventHandler.to_owned(self),
},
.{