summaryrefslogtreecommitdiff
path: root/core/draw.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/draw.zig')
-rw-r--r--core/draw.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/draw.zig b/core/draw.zig
index dac6673e..4d48e925 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);
}