refactor: move mode.event_handler back to input mode

This commit is contained in:
CJ van den Berg 2024-10-27 18:53:24 +01:00
parent d06ebd0dd5
commit 525287c7ac
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
22 changed files with 47 additions and 51 deletions

View file

@ -42,9 +42,11 @@ pub fn create(allocator: Allocator, _: command.Context) !struct { tui.Mode, tui.
self.input = self.buf[0..text.len];
};
return .{
try keybind.mode.mini.find_in_files.create(allocator),
.{
.input_handler = keybind.mode.mini.find_in_files.create(allocator),
.event_handler = EventHandler.to_owned(self),
},
.{
.name = name,
},
};