summaryrefslogtreecommitdiff
path: root/core/Term.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Term.zig')
-rw-r--r--core/Term.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Term.zig b/core/Term.zig
index f0329852..a83bf927 100644
--- a/core/Term.zig
+++ b/core/Term.zig
@@ -559,10 +559,10 @@ test "a core without a terminal: Term refuses in words, and no line is typed at
try std.testing.expectError(error.NoTerminal, p.newShell(p.freeSlot().?, ""));
try std.testing.expect(p.executeBuiltinLine(0, "Term"));
const pane = p.panes[0].?;
- try std.testing.expectEqualStrings("Term: " ++ none, pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings("Term: " ++ none, p.messages.saidBy(pane));
// A line no shell can take runs in a command pane, a terminal: refused.
try std.testing.expectEqual(null, pardes.exec.execute(p, 0, "make"));
- try std.testing.expectEqualStrings("exec: " ++ none, pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings("exec: " ++ none, p.messages.saidBy(pane));
for (p.panes, 0..) |slot, id| if (slot) |_| try std.testing.expect(!pardes.exec.takesCommandLine(p, id));
}