From 7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 9 Nov 2026 03:31:45 -0300 Subject: idioms: std.Io's names for the std.fs aliases left in Addon, Kind, rollback and replica (std.Io.Dir.path, std.Io.Dir.max_path_bytes), and the window's handover dump written and removed through the shell's io (Io.Dir.writeFile at 0600, deleteFile) instead of libc open, write and unlink Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/rollback.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rollback.zig') diff --git a/src/rollback.zig b/src/rollback.zig index ccd056fd..461ba45b 100644 --- a/src/rollback.zig +++ b/src/rollback.zig @@ -765,7 +765,7 @@ test "a file's location rows are pinned whole, with what they own, and come back /// `Look `, the name a file of the repository's, absolute. fn lookAt(buf: []u8, name: []const u8) ![]const u8 { - var cwd: [std.fs.max_path_bytes]u8 = undefined; + var cwd: [std.Io.Dir.max_path_bytes]u8 = undefined; const dir = std.c.getcwd(&cwd, cwd.len) orelse return error.NoCwd; return std.fmt.bufPrint(buf, "Look {s}/{s}", .{ std.mem.span(@as([*:0]u8, @ptrCast(dir))), name }); } @@ -776,7 +776,7 @@ test "a rollback leaves the store and Recent as a speculation left them: they li const gpa = e.allocator(); const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa }); p.pump(.{}) catch {}; - var line: [std.fs.max_path_bytes + 16]u8 = undefined; + var line: [std.Io.Dir.max_path_bytes + 16]u8 = undefined; p.update(.{ .command = try lookAt(&line, "build.zig.zon") }); p.update(.{ .command = "Del" }); p.pump(.{}) catch {}; -- cgit v1.3