diff options
Diffstat (limited to 'core/edit.zig')
| -rw-r--r-- | core/edit.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/edit.zig b/core/edit.zig index 3e57927a..ca9cbd91 100644 --- a/core/edit.zig +++ b/core/edit.zig @@ -2308,7 +2308,7 @@ test "insert on a terminal's text says it edits a copy the program's next drawin pane.body.mode = .normal; p.update(.{ .key = .{ .cp = 'i' } }); p.update(.{ .key = .{ .cp = 'x', .text = "x" } }); - try std.testing.expect(std.mem.indexOf(u8, pane.msg[0..pane.msg_len], "a copy of the terminal's text") != null); + try std.testing.expect(std.mem.indexOf(u8, p.messages.saidBy(pane), "a copy of the terminal's text") != null); } test "insert and normal modes edit complete Unicode graphemes" { @@ -2521,7 +2521,7 @@ test "a paste past the limit is cut at it, and says so" { try applyPaste(p, big); try std.testing.expect(pane.file.?.content.len <= limit); try std.testing.expect(pane.file.?.content.len > 0); - try std.testing.expect(std.mem.indexOf(u8, pane.msg[0..pane.msg_len], "paste cut") != null); + try std.testing.expect(std.mem.indexOf(u8, p.messages.saidBy(pane), "paste cut") != null); } test "typing and backspace through the line index keep the text and the index as a rebuild has them" { |
