╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────╮ │720 _ = ui.widget.moveInSelectedRow(inner, root_focus, true);│ │721 } │ │722 } else { │ │723 - try self.listInput(key, root_focus); │ │723 + try self.listInput(allocator, key, root_focus); │ │724 } │ │725 } │ │726 │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │736 try self.session.navigate((route orelse return).withSearch(text) orelse return); │ │737 } │ │738 │ │739 - fn listInput(self: *View, key: Key, root_focus: *Focus) !void { │ │739 + fn listInput(self: *View, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void {│ │740 // up/down (and the scroll wheel) move the selection a row; page up/down │ │741 // jump a fixed amount. right/Enter cross into the detail pane. Enter/clicks │ │742 // on the "next" row become navigation in the host before reaching here. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │751 if (pageRoute(self.data, next)) |route| try self.session.navigate(route); │ │752 }, │ │753 .arrow_right => self.focusDetail(root_focus), │ │754 + // when the window is too narrow to lay out the detail pane beside │ │755 + // the list, a click on a row opens it like enter. the row was just │ │756 + // selected, so the detail is swapped to it ahead of the build. │ │757 + .mouse => |mouse| if (self.contentBox().children.values()[detail_index].rect == null and ui.widget.clickOnSelectedRow(self.listBox(), root_focus, mouse)) {│ │758 + try self.refreshDetail(allocator); │ │759 + self.focusDetail(root_focus); │ │760 + }, │ │761 else => {}, │ │762 } │ │763 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯