refactor: use the same create interface for all modes
This commit is contained in:
parent
0037695983
commit
ae3d21ad08
13 changed files with 13 additions and 13 deletions
|
@ -63,7 +63,7 @@ pub fn create(allocator: std.mem.Allocator) !tui.Mode {
|
|||
try mv.floating_views.add(self.modal.widget());
|
||||
try mv.floating_views.add(self.menu.container_widget);
|
||||
return .{
|
||||
.input_handler = keybind.mode.overlay.palette.create(),
|
||||
.input_handler = try keybind.mode.overlay.palette.create(allocator, .{}),
|
||||
.event_handler = EventHandler.to_owned(self),
|
||||
.name = " open recent",
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue