╭ changed ──────╮ │src/ui/Home.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │127 self.clearGrid(); │ │128 const header = &self.box.children.values()[header_index].widget.home_header;│ │129 const stack = &self.box.children.values()[stack_index].widget.stack; │ │130 + │ │131 + // each header tab maps 1:1 to a stack child by position │ │132 if (header.getSelectedIndex()) |index| { │ │133 stack.getFocus().child_id = stack.children.keys()[index]; │ │134 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │141 const child = &self.box.children.values()[current_index].widget;│ │142 var index = current_index; │ │143 │ │119 - // arrow up/down (and scroll wheel) move focus between the │ │120 - // header and the stack below it, matching radargit's GitUI. │ │144 const Direction = enum { up, down, none }; │ │145 const direction: Direction = switch (key) { │ │146 .arrow_up => .up, │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │163 const at_top = switch (selected_widget.*) { │ │164 .home_users => |*v| v.getSelectedIndex() == 0,│ │165 .home_repos => |*v| v.getSelectedIndex() == 0,│ │166 + .home_auth => |*v| v.getSelectedIndex() == 0, │ │167 else => false, │ │168 }; │ │169 if (at_top) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯