╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────╮ │121 // view it shows. │ │122 const issues_tag: []const u8 = switch (route) { │ │123 .repo_issues => |*i| i.tag.slice(), │ │124 + else => "", │ │125 + }; │ │126 + const issues_search: []const u8 = switch (route) { │ │127 + .repo_issues => |*i| i.search.slice(), │ │128 else => "", │ │129 }; │ │130 const issues_selected: []const u8 = switch (route) {│ ╰─────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │149 }; │ │150 const patches_tag: []const u8 = switch (route) { │ │151 .repo_patches => |*p| p.tag.slice(), │ │152 + else => "", │ │153 + }; │ │154 + const patches_search: []const u8 = switch (route) { │ │155 + .repo_patches => |*p| p.search.slice(), │ │156 else => "", │ │157 }; │ │158 const patches_selected: []const u8 = switch (route) {│ ╰──────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │179 .repo_discussions => |*t| t.tag.slice(), │ │180 else => "", │ │181 }; │ │182 + const discussions_search: []const u8 = switch (route) { │ │183 + .repo_discussions => |*t| t.search.slice(), │ │184 + else => "", │ │185 + }; │ │186 const discussions_selected: []const u8 = switch (route) {│ │187 .repo_discussions => |*t| t.selected.slice(), │ │188 else => "", │ ╰──────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │285 files_data, │ │286 changes_data, │ │287 try Refs.init(repo_kind, opened.self_repo_opts, arena, opened, io, gpa, repo_identity.identity, refs_kind, refs_from), │ │276 - try Issues.init(repo_kind, opened.self_repo_opts, arena, opened, io, session.haxy_moment, repo_identity.identity, issues_tag, issues_selected, issues_comment, issues_comments_start, issues_theirs, issues_view), │ │277 - try Patches.init(repo_kind, opened.self_repo_opts, arena, opened, io, session.haxy_moment, session, repo_id_maybe, repo_identity.identity, target_branch, patches_tag, patches_selected, patches_comment, patches_comments_start, patches_theirs, patches_view), │ │278 - try Discussions.init(repo_kind, opened.self_repo_opts, arena, opened, io, session.haxy_moment, repo_identity.identity, discussions_tag, discussions_selected, discussions_comment, discussions_comments_start, discussions_view), │ │288 + try Issues.init(repo_kind, opened.self_repo_opts, arena, opened, io, session.haxy_moment, repo_identity.identity, issues_tag, issues_search, issues_selected, issues_comment, issues_comments_start, issues_theirs, issues_view), │ │289 + try Patches.init(repo_kind, opened.self_repo_opts, arena, opened, io, session.haxy_moment, session, repo_id_maybe, repo_identity.identity, target_branch, patches_tag, patches_search, patches_selected, patches_comment, patches_comments_start, patches_theirs, patches_view),│ │290 + try Discussions.init(repo_kind, opened.self_repo_opts, arena, opened, io, session.haxy_moment, repo_identity.identity, discussions_tag, discussions_search, discussions_selected, discussions_comment, discussions_comments_start, discussions_view), │ │291 try Events.init(repo_kind, opened.self_repo_opts, arena, opened, io, session.haxy_moment, repo_identity.identity, events_view, events_kind, events_selected, session.local != null, session.data.sync_failure), │ │292 }; │ │293 }, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │300 try Files.emptyResult(aa, location, requested_ref_or_oid orelse .branch, requested_ref_value, files_dir), │ │301 Changes{ .commits = try Commits.emptyResult(aa, location, requested_ref_or_oid orelse .branch, requested_ref_value, commits_content, commits_base_oid) }, │ │302 try Refs.emptyResult(arena, repo_identity.identity, refs_kind, refs_from), │ │291 - try Issues.emptyResult(aa, repo_identity.identity, issues_tag, issues_selected, issues_comment, issues_comments_start, issues_theirs, issues_view), │ │292 - try Patches.emptyResult(aa, repo_identity.identity, patches_tag, patches_selected, patches_comment, patches_comments_start, patches_theirs, patches_view), │ │293 - try Discussions.emptyResult(aa, repo_identity.identity, discussions_tag, discussions_selected, discussions_comment, discussions_comments_start, discussions_view), │ │303 + try Issues.emptyResult(aa, repo_identity.identity, issues_tag, issues_search, issues_selected, issues_comment, issues_comments_start, issues_theirs, issues_view), │ │304 + try Patches.emptyResult(aa, repo_identity.identity, patches_tag, patches_search, patches_selected, patches_comment, patches_comments_start, patches_theirs, patches_view), │ │305 + try Discussions.emptyResult(aa, repo_identity.identity, discussions_tag, discussions_search, discussions_selected, discussions_comment, discussions_comments_start, discussions_view),│ │306 try Events.empty(aa, repo_identity.identity, events_view, session.local != null, session.data.sync_failure), │ │307 }; │ │308 }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │431 var self = View{ .box = box }; │ │432 // a page opens on its tabs, except that search results open in the │ │433 // tab's own search box. │ │422 - const results = data.files.find != null or (data.changes == .commits and data.changes.commits.search != null);│ │434 + const results = data.files.find != null or │ │435 + (data.changes == .commits and data.changes.commits.search != null) or │ │436 + data.issues.search != null or data.patches.search != null or data.discussions.search != null; │ │437 self.getFocus().child_id = box.children.keys()[if (results) stack_index else header_index]; │ │438 return self; │ │439 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯