diff options
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; |
