╭ changed ────────╮ │src/ui/widget.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │257 .fork => unreachable, │ │258 }; │ │259 const aa = session.page_arena.allocator(); │ │260 - const url = try std.fmt.allocPrint(aa, "ssh://localhost:{d}/{s}", .{ port, identity });│ │260 + const url = try aa.print("ssh://localhost:{d}/{s}", .{ port, identity }); │ │261 break :blk try CopyableText.init(allocator, session, &.{.{ │ │262 .text = url, │ │263 - .copyable_text = try std.fmt.allocPrint(aa, "git remote add origin {s}", .{url}), │ │263 + .copyable_text = try aa.print("git remote add origin {s}", .{url}), │ │264 .label = " git remote add origin ", │ │265 }}, 0); │ │266 } else null else null; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1061 var option = try wgt.TextBox.init(allocator, value, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │1062 errdefer option.deinit(allocator); │ │1063 option.getFocus().mode = .all; │ │1064 - option.getFocus().kind = .{ .custom = try std.fmt.allocPrint(session.page_arena.allocator(), ui.radio_prefix ++ "{s}={s}", .{ name, value }) }; │ │1064 + option.getFocus().kind = .{ .custom = try session.page_arena.allocator().print(ui.radio_prefix ++ "{s}={s}", .{ name, value }) }; │ │1065 if (std.mem.eql(u8, value, initial)) box.getFocus().child_id = option.getFocus().id; │ │1066 try box.children.put(allocator, option.getFocus().id, .{ .widget = .{ .text_box = option }, .rect = null, .min_size = .{ .width = try xitui.width.displayWidth(value) + 2, .height = 3 } });│ │1067 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1911 switch (handle.location) { │ │1912 .repo => |identity| { │ │1913 if (session.data.git_http_port) |port| { │ │1914 - const url = try std.fmt.allocPrint(aa, "http://localhost:{d}/{s}", .{ port, identity });│ │1914 + const url = try aa.print("http://localhost:{d}/{s}", .{ port, identity }); │ │1915 choices[count] = .{ │ │1916 .selector = "http", │ │1917 .text = url, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │1918 - .copyable_text = try std.fmt.allocPrint(aa, "git clone {s}", .{url}),│ │1918 + .copyable_text = try aa.print("git clone {s}", .{url}), │ │1919 .label = " clone ", │ │1920 }; │ │1921 count += 1; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1922 } │ │1923 if (session.data.git_ssh_port) |port| { │ │1924 ssh_index = count; │ │1925 - const url = try std.fmt.allocPrint(aa, "ssh://localhost:{d}/{s}", .{ port, identity });│ │1925 + const url = try aa.print("ssh://localhost:{d}/{s}", .{ port, identity }); │ │1926 choices[count] = .{ │ │1927 .selector = "ssh", │ │1928 .text = url, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1929 - .copyable_text = try std.fmt.allocPrint(aa, "{s}git clone {s}", .{ session.data.git_ssh_prefix, url }),│ │1929 + .copyable_text = try aa.print("{s}git clone {s}", .{ session.data.git_ssh_prefix, url }), │ │1930 .label = " clone ", │ │1931 }; │ │1932 count += 1; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1933 } │ │1934 }, │ │1935 .fork => |f| if (session.data.git_ssh_port) |port| { │ │1936 - const url = try std.fmt.allocPrint(aa, "ssh://localhost:{d}/{s}+{s}", .{ port, f.identity, f.id }); │ │1936 + const url = try aa.print("ssh://localhost:{d}/{s}+{s}", .{ port, f.identity, f.id }); │ │1937 choices[count] = .{ │ │1938 .text = url, │ │1939 - .copyable_text = try std.fmt.allocPrint(aa, "{s}git clone {s}", .{ session.data.git_ssh_prefix, url }),│ │1939 + .copyable_text = try aa.print("{s}git clone {s}", .{ session.data.git_ssh_prefix, url }), │ │1940 .label = " clone ", │ │1941 }; │ │1942 count += 1; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯