diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
| commit | 0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch) | |
| tree | f2e288668decded9276ebc45907f16d651b06f9e /core/draw.zig | |
| parent | 2ab05b536bc3b063666b5aaab497157adc2a9120 (diff) | |
| parent | bf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff) | |
| download | pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.tar.gz pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.zip | |
integration: a pane's and a view's slot as types, with the regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/draw.zig')
| -rw-r--r-- | core/draw.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/draw.zig b/core/draw.zig index 88011373..5ff31af6 100644 --- a/core/draw.zig +++ b/core/draw.zig @@ -979,7 +979,7 @@ test "every theme draws a file's name, a +Errors and a Term word in a tint, neve _ = try p.setTestFile("text\n"); try std.testing.expect(p.executeBuiltinLine(0, "Term+sh")); const terminal = p.view().active; - p.acknowledgeShell(terminal, "/bin/sh", false); + p.acknowledgeShell(.at(terminal), "/bin/sh", false); try @import("Output.zig").openErrors(p, 0, try gpa.dupe(u8, "oops\n")); while (p.nextEffect()) |_| {} const errors = for (p.panes, 0..) |slot, id| { @@ -1172,7 +1172,7 @@ test "a notice wider than its band, as a shader's compile error is, draws its en const long = std.mem.asBytes(&@as([3][126]u8, @splat("Shader /home/someone/shaders/test_shadertoy_invalid.glsl: error: Linking fragment stage: No function definition (body) found: ".*))); for ([_][]const u8{ "Msg " ++ long, "" }) |line| { // The Msg builtin, and the path a failed compile takes (Post.zig). - if (line.len > 0) try std.testing.expect(p.executeBuiltinLine(p.view().active, line)) else p.setMessage(p.view().active, long); + if (line.len > 0) try std.testing.expect(p.executeBuiltinLine(p.view().active, line)) else p.setMessage(.at(p.view().active), long); p.sync(); for (0..30) |_| p.update(.tick); _ = arena.reset(.retain_capacity); @@ -1220,7 +1220,7 @@ test "a monkey over notices, prompts, tags and tiny panes at a gui's metrics nev 1, 2 => { text.clearRetainingCapacity(); for (0..random.uintAtMost(usize, 60)) |_| try text.appendSlice(std.testing.allocator, words[random.uintLessThan(usize, words.len)]); - if (random.boolean()) p.setMessage(p.view().active, text.items) else { + if (random.boolean()) p.setMessage(.at(p.view().active), text.items) else { const line = try std.fmt.allocPrint(arena.allocator(), "Msg {s}", .{text.items}); _ = p.executeBuiltinLine(p.view().active, line); } @@ -1412,7 +1412,7 @@ test "a frame changes nothing a step reads: a core drawing after every input and 8 => .{ .command = commands[random.uintLessThan(usize, commands.len)] }, 9 => .{ .paste = "| new | row |\n" }, // The text changed on disk: a step changes it whole. - 10 => .{ .file_changed = .{ .pane = 0, .bytes = text.items[0 .. text.items.len - random.uintLessThan(usize, 40)] } }, + 10 => .{ .file_changed = .{ .pane = .at(0), .bytes = text.items[0 .. text.items.len - random.uintLessThan(usize, 40)] } }, else => blk: { now += random.uintLessThan(u64, 2 * std.time.ns_per_s); break :blk .tick; |
