╭ changed ────────────╮ │src/ui/Repo/Files.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────╮ │757 if (self.detailActive()) { │ │758 try self.detailInput(allocator, key, root_focus);│ │759 } else { │ │760 - try self.listInput(key, root_focus); │ │760 + try self.listInput(allocator, key, root_focus); │ │761 } │ │762 } │ │763 │ ╰──────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │769 try self.session.navigate(route.withFind(term) orelse return); │ │770 } │ │771 │ │772 - fn listInput(self: *View, key: Key, root_focus: *Focus) !void { │ │772 + fn listInput(self: *View, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void {│ │773 // up/down (and the scroll wheel) move the selection; page up/down jump a │ │774 // fixed amount. right/Enter cross into the detail pane. Enter/clicks on a │ │775 // directory (or "..") row are turned into navigation by the host │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │780 } │ │781 switch (key) { │ │782 .enter, .arrow_right => try self.focusDetail(root_focus), │ │783 + // when the window is too narrow to lay out the detail pane beside │ │784 + // the list, a click on a row opens it like enter. the row was just │ │785 + // selected, so the detail is swapped to it ahead of the build. │ │786 + .mouse => |mouse| if (self.contentBox().children.values()[detail_index].rect == null and ui.widget.clickOnSelectedRow(self.listBox(), root_focus, mouse)) {│ │787 + try self.refreshDetail(allocator); │ │788 + try self.focusDetail(root_focus); │ │789 + }, │ │790 else => {}, │ │791 } │ │792 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯