╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │953 } │ │954 │ │955 // only the clone-url row sits directly below the repository header. │ │956 - pub fn getSelectedIndex(self: *View) ?usize { │ │957 - if (self.headerActive()) return 0; │ │958 - return if (self.header().hasCloneUrl() or !self.contentAtTop()) 1 else 0; │ │956 + pub fn atTop(self: *View) bool { │ │957 + return self.headerActive() or (!self.header().hasCloneUrl() and self.contentAtTop());│ │958 } │ │959 │ │960 pub fn focusCloneUrl(self: *View, root_focus: *Focus) bool { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯