diff options
Diffstat (limited to 'core/File.zig')
| -rw-r--r-- | core/File.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/File.zig b/core/File.zig index 07dfa52d..58544b62 100644 --- a/core/File.zig +++ b/core/File.zig @@ -3524,7 +3524,7 @@ test "a text replaced whole keeps its old buffer for its undo, swapped back and setContent(p, f, try gpa.dupe(u8, t)); } try std.testing.expectEqual(@as(usize, 2), j.done); - try std.testing.expect(std.mem.indexOf(u8, pane.msg[0..pane.msg_len], "undo keeps the last two texts replaced whole") != null); + try std.testing.expect(std.mem.indexOf(u8, p.messages.saidBy(pane), "undo keeps the last two texts replaced whole") != null); try undoStep(p, pane, true); try undoStep(p, pane, true); try std.testing.expectEqualStrings(texts[1], f.content); |
