╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Issues.zig ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
1602 self.box.clearGrid(); 1603 } 1604 1605 pub fn getGrid(self: Header) ?Grid { 1606 return self.box.getGrid(); 1607 } 1608 1609 pub fn getFocus(self: *Header) *Focus { 1610 return self.box.getFocus(); 1611 } 1612 1613 pub fn getSelectedIndex(self: Header) ?usize { 1614 return self.currentTabIndex(); 1615 } 1616 1617 fn currentTabIndex(self: Header) ?usize { 1618 const child_id = self.box.focus.child_id orelse return null; 1619 return self.tab_ids.getIndex(child_id); 1620 } 1621 }; 1622