╭ changed ────────────╮ │src/ui/Repo/Files.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │748 } │ │749 │ │750 // only the clone-url row sits directly below the repository header. │ │751 - pub fn getSelectedIndex(self: *View) ?usize { │ │752 - if (self.headerActive()) return 0; │ │753 - return if (self.header().hasCloneUrl() or !self.contentAtTop()) 1 else 0; │ │751 + pub fn atTop(self: *View) bool { │ │752 + return self.headerActive() or (!self.header().hasCloneUrl() and self.contentAtTop());│ │753 } │ │754 │ │755 pub fn focusCloneUrl(self: *View, root_focus: *Focus) bool { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯