╭ changed ───────────╮ │src/ui/Repo/Refs.zig│ ╰────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │337 return self.box.getFocus(); │ │338 } │ │339 │ │340 - // the selected row's offset within the active column (0 = first row), so the│ │341 - // parent knows when up should escape to the header. │ │342 - pub fn getSelectedIndex(self: View) ?usize { │ │343 - var copy = self; │ │344 - const col = copy.activeColumn() orelse return null; │ │345 - const cur_id = col.getFocus().child_id orelse return null; │ │346 - return col.children.getIndex(cur_id); │ │340 + pub fn atTop(self: *View) bool { │ │341 + const col = self.activeColumn() orelse return false; │ │342 + const cur_id = col.getFocus().child_id orelse return false; │ │343 + return col.children.getIndex(cur_id) == 0; │ │344 } │ │345 }; │ │346 │ ╰──────────────────────────────────────────────────────────────────────────────────────╯