summaryrefslogtreecommitdiff
path: root/src/rollback.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/rollback.zig')
-rw-r--r--src/rollback.zig4
1 files changed, 2 insertions, 2 deletions
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 <name>`, 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 {};