╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────╮ │555 repo: *rp.Repo(.xit, evt.admin_repo_opts), │ │556 ) !void { │ │557 defer self.pending.clearRetainingCapacity();│ │558 + var wrote = false; │ │559 for (self.pending.items) |action| { │ │560 self.apply(action); │ │561 switch (action) { │ ╰─────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │562 .toggle_ansi => if (self.data.user_id) |user_id| { │ │563 try evt.User.toggleAnsi(evt.admin_repo_opts, io, allocator, repo, user_id);│ │564 + wrote = true; │ │565 }, │ │566 } │ │567 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │568 + // reload the moment so a later read off it sees what we just applied │ │569 + if (wrote) self.haxy_moment = try evt.currentMoment(evt.admin_repo_opts, repo);│ │570 } │ │571 │ │572 // request a forward navigation to `route`; the host consumes next_page │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯