╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │120 data: *const Self, │ │121 │ │122 pub fn init(allocator: std.mem.Allocator, data: *const Self, session: *ui.Session) !View { │ │123 - var box = wgt.Box(ui.Widget).init(.{ .border_style = null, .direction = .vert }); │ │123 + var box = try wgt.Box(ui.Widget).init(allocator, .{ .border_style = null, .direction = .vert });│ │124 errdefer box.deinit(allocator); │ │125 │ │126 // labels and link kinds are borrowed by the rows, so they live in the │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │135 } │ │136 if (box.children.count() > 0) box.getFocus().child_id = box.children.keys()[0]; │ │137 │ │138 - var scroll = try wgt.Scroll(ui.Widget).init(allocator, .{ .box = box }, .vert); │ │138 + var scroll = try wgt.Scroll(ui.Widget).init(allocator, .{ .box = box }, .{ .direction = .vert });│ │139 errdefer scroll.deinit(allocator); │ │140 return .{ .scroll = scroll, .data = data }; │ │141 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯