summaryrefslogtreecommitdiff
path: root/src/rollback.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/rollback.zig')
-rw-r--r--src/rollback.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rollback.zig b/src/rollback.zig
index ce4016d8..e08e6242 100644
--- a/src/rollback.zig
+++ b/src/rollback.zig
@@ -576,7 +576,7 @@ test "a copy put back is the core as it was; one let go keeps what was done" {
var e: Epoch = .{ .child = std.testing.allocator };
defer e.deinit();
const gpa = e.allocator();
- const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .pdf_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
+ 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 {};
const before = walk.digest(Pardes, p);
var c: Copy = .{};
@@ -606,7 +606,7 @@ test "a text written in place under a copy comes back byte for byte: typed into
var e: Epoch = .{ .child = std.testing.allocator };
defer e.deinit();
const gpa = e.allocator();
- const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "build.zig", .image_allocator = gpa, .pdf_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
+ const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "build.zig", .image_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
p.pump(.{}) catch {};
const f = for (p.panes) |slot| {
if (slot) |pane| if (pane.file) |*file| break file;
@@ -671,7 +671,7 @@ test "a view's slot, live or drawn outside a step (a replica's own, another live
var e: Epoch = .{};
defer e.deinit();
const gpa = e.allocator();
- const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .pdf_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
+ const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
defer p.deinit();
p.pump(.{}) catch {};
_ = p.openView() orelse return error.NoView;
@@ -711,7 +711,7 @@ test "a register's texts are pinned, not copied, and come back whole" {
var e: Epoch = .{ .child = std.testing.allocator };
defer e.deinit();
const gpa = e.allocator();
- const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .pdf_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
+ 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 {};
// A terminal's whole grid yanked: megabytes, and joined once read.
const grid = try std.testing.allocator.alloc(u8, 2 << 20);
@@ -740,7 +740,7 @@ test "a file's location rows are pinned whole, with what they own, and come back
var e: Epoch = .{ .child = std.testing.allocator };
defer e.deinit();
const gpa = e.allocator();
- const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .pdf_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
+ 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 {};
const f = for (p.panes) |slot| {
if (slot) |pane| if (pane.file) |*file| break file;
@@ -774,7 +774,7 @@ test "a rollback leaves the store and Recent as a speculation left them: they li
var e: Epoch = .{ .child = std.testing.allocator };
defer e.deinit();
const gpa = e.allocator();
- const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .pdf_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa });
+ 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;
p.update(.{ .command = try lookAt(&line, "build.zig.zon") });