╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │508 inner.children.clearAndFree(allocator); │ │509 inner.getFocus().child_id = null; │ │510 │ │511 + // a "previous" row at the top and a "next" row at the bottom reload the │ │512 + // page on the adjacent diff window. │ │513 + if (commit.has_prev) try self.addNavLink(allocator, inner, "← previous", commit.oid, commit.window_start -| diff_page);│ │514 for (commit.hunks) |hunk| { │ │515 if (hunk.path) |path| try self.addPathBox(allocator, inner, path); │ │516 try self.addHunkBox(allocator, inner, hunk.lines); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │517 } │ │506 - // the load-more link reloads showing one more page of this commit's hunks. │ │507 - if (commit.has_more) try self.addLoadMore(allocator, inner, commit.oid, commit.shown_hunks + diff_page); │ │518 + if (commit.has_more) try self.addNavLink(allocator, inner, "next →", commit.oid, commit.window_start + diff_page);│ │519 │ │520 const sc = self.diffScroll(); │ │521 sc.x = 0; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │567 .arrow_down => try self.moveDiff(root_focus, 1), │ │568 .page_up => try self.pageDiff(root_focus, -page_rows), │ │569 .page_down => try self.pageDiff(root_focus, page_rows), │ │559 - // Enter / a click on the "load more" row follow its "a:" link in the │ │560 - // host (it reloads the page with more hunks), so they don't reach here. │ │570 + // Enter / a click on a "previous"/"next" row follow its "a:" link in │ │571 + // the host (it reloads the adjacent window), so they don't reach here. │ │572 .mouse => |mouse| switch (mouse.action) { │ │573 .scroll => |dir| try self.moveDiff(root_focus, if (dir == .up) -1 else 1),│ │574 else => {}, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯