╭ changed ──────╮ │src/ui/Fork.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │211 .up => switch (child.*) { │ │212 .fork_header => try child.input(allocator, key, root_focus), │ │213 .stack => if (stack.getSelected()) |selected| { │ │214 - const at_top = switch (selected.*) { │ │215 - .repo_patch_detail => |*view| view.atTop(root_focus), │ │216 - .repo_files => |*view| view.getSelectedIndex() == 0, │ │217 - .repo_commits => |*view| view.getSelectedIndex() == 0, │ │218 - .home_settings => |*view| view.getSelectedIndex() == 0, │ │219 - .home_auth => |*view| view.getSelectedIndex() == 0, │ │220 - .quit => |*view| view.getSelectedIndex() == 0, │ │221 - else => false, │ │222 - }; │ │223 - if (at_top) next_index = header_index else try child.input(allocator, key, root_focus); │ │214 + if (selected.atTop(root_focus)) next_index = header_index else try child.input(allocator, key, root_focus);│ │215 }, │ │216 else => {}, │ │217 }, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯