╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │413 │ │414 // swap the diff pane to the selected commit when it changes. │ │415 try self.refreshDiff(allocator); │ │416 + │ │417 + // mirror the focused commit into the url so it updates as the selection │ │418 + // moves, but only while focus is inside this view (the list or diff). when │ │419 + // focus sits on the header tab, use the page's base /commits route. │ │420 + if (root_focus.grandchild_id) |g| { │ │421 + if (self.box.getFocus().children.contains(g)) { │ │422 + if (self.selectedCommitIndex()) |sel| { │ │423 + if (ui.RoutablePage.repoCommitsRoute(self.data.identity, self.data.commits[sel].oid)) |route|│ │424 + self.session.data.current_page = route; │ │425 + } │ │426 + } │ │427 + } │ │428 │ │429 // the selected list row shows a border (the focused TextBox upgrades it │ │430 // to a double border itself); the rest stay borderless. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯