summaryrefslogtreecommitdiff
path: root/src/rollback.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 06:24:42 -0300
committerGabriel Schneider <[email protected]>2026-11-06 11:19:44 -0300
commitc1917b949b9580de8bf0977874a210f0266812da (patch)
tree447dd2235ea00634f662cd3becf4bceb8a895f41 /src/rollback.zig
parent76c55b5bce0f181b0b15b16596c900397dfef544 (diff)
downloadpardes-c1917b949b9580de8bf0977874a210f0266812da.tar.gz
pardes-c1917b949b9580de8bf0977874a210f0266812da.zip
kinds #14, the core's PDF code gone: pdf.zig and pdf_view.zig leave and every pdf_enabled branch with them; look, Jump, Recent, dumps (one from before the addon opens as its pane), the watch, mouse, keys, the rail and the tag go through Kind for any kind's pane; test/pdf.zig's behaviours are T1 cases over 9P (addons_pdf.zig) and pane cases (a Shadow over a replica, a file changed under it), the harnesses load pdf.so by path
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
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") });