╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1999 return a.parent() == .fork and b.parent() == .fork and !a.eql(b); │ │2000 } │ │2001 │ │2002 - // true when `a` and `b` are different users' pages, or the same user │ │2003 - // paginated to a different repos window or search. switching between a │ │2004 - // user's tabs is in-page, so only a changed `start` or search on the same │ │2005 - // list navigates. │ │2002 + // true when `a` and `b` are different users' pages, different tabs of one │ │2003 + // user's page, or the same list paginated to a different window or search. │ │2004 + // the header's tab switches are in-page `ai:` links, which never ask this. │ │2005 pub fn userPageChanged(a: RoutablePage, b: RoutablePage) bool { │ │2006 if (a.userPageName()) |a_name| if (b.userPageName()) |b_name| { │ │2008 - if (!std.mem.eql(u8, a_name, b_name)) return true; │ │2007 + if (!std.mem.eql(u8, a_name, b_name) or std.meta.activeTag(a) != std.meta.activeTag(b)) return true;│ │2008 }; │ │2009 return switch (a) { │ │2010 .user_repos => |aa| switch (b) { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯