╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │2397 .header => self.focusHeader(root_focus), │ │2398 } │ │2399 } else { │ │2399 - self.listInput(i, key, root_focus); │ │2400 + try self.listInput(allocator, i, key, root_focus);│ │2401 } │ │2402 } │ │2403 │ ╰────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2430 } │ │2431 } │ │2432 │ │2432 - fn listInput(self: *This, index: usize, key: Key, root_focus: *Focus) void { │ │2433 + fn listInput(self: *This, allocator: std.mem.Allocator, index: usize, key: Key, root_focus: *Focus) !void {│ │2434 // up/down (and the scroll wheel) move the selection a row; page up/down │ │2435 // jump a fixed amount. right/Enter cross into the detail pane. up from │ │2436 // the top row crosses into the header tabs. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2443 } │ │2444 switch (key) { │ │2445 .enter, .arrow_right => _ = self.detail(index).focusFirst(root_focus), │ │2446 + // when the window is too narrow to lay out the detail pane beside │ │2447 + // the list, a click on a row opens it like enter. the row was just │ │2448 + // selected, so the detail is swapped to it ahead of the build. │ │2449 + .mouse => |mouse| if (self.resultsBox(index).children.values()[detail_index].rect == null and widget.clickOnSelectedRow(self.listBox(index), root_focus, mouse)) {│ │2450 + try self.refreshDetail(allocator, index); │ │2451 + _ = self.detail(index).focusFirst(root_focus); │ │2452 + }, │ │2453 else => {}, │ │2454 } │ │2455 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯