diff options
Diffstat (limited to 'core/Db.zig')
| -rw-r--r-- | core/Db.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Db.zig b/core/Db.zig index eb8ee20c..4131ccbc 100644 --- a/core/Db.zig +++ b/core/Db.zig @@ -1424,7 +1424,7 @@ test "state file: Recent is read once from the file it replaced, else from the s defer c.deinit(); try testing.expectEqual(@as(usize, 0), c.recent.entries.items.len); const pane = c.panes[c.view().active].?; - try testing.expect(std.mem.indexOf(u8, pane.msg[0..pane.msg_len], "Recent: the files before the state file were not read") != null); + try testing.expect(std.mem.indexOf(u8, c.messages.saidBy(pane), "Recent: the files before the state file were not read") != null); } // Both left where they were. _ = try tmp.dir.statFile(testing.io, "old/recent", .{}); |
