summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/hxdiff.zig2
-rw-r--r--test/panes.zig2
-rw-r--r--test/perf.zig2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/hxdiff.zig b/test/hxdiff.zig
index 010cc674..ae73863e 100644
--- a/test/hxdiff.zig
+++ b/test/hxdiff.zig
@@ -433,7 +433,7 @@ fn runCase(arena: std.mem.Allocator, case: Case, pane_kind: []const u8) !Result
// the cursor's empty row below the output (see Pardes.shellRows), so
// its line list is exactly a file content's — join it and you have the
// same bytes, trailing newline included, with nothing to patch up.
- const lines = try pardes.edit.paneCursorLines(core, &pane.body);
+ const lines = try pardes.edit.paneCursorLines(core.editor(), &pane.body);
var text_len: usize = if (lines.len == 0) 0 else lines.len - 1;
for (lines) |ln| text_len = std.math.add(usize, text_len, ln.len) catch return error.OutOfMemory;
const joined = try arena.alloc(u8, text_len);
diff --git a/test/panes.zig b/test/panes.zig
index 04769ccf..fb973ea2 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -1153,7 +1153,7 @@ test "terminal edits and undo survive partial history clearing and whole-screen
try std.testing.expectEqualStrings("edit one\nedit two", snapshot.ovl.?.text);
}
try std.testing.expectEqual(@as(usize, 2), pardes.Term.emulatorOf(pane.terminal.?).vt.screens.active.pages.countTrackedPins());
- try pardes.edit.undoStep(p, &pane.body, true);
+ try pardes.edit.undoStep(p.editor(), &pane.body, true);
try std.testing.expectEqualStrings("edit one\nedit two", pane.ovl.?.text);
try std.testing.expectEqual(expected, pane.ovl.?.row);
}
diff --git a/test/perf.zig b/test/perf.zig
index 0f5466ad..85cc2ca3 100644
--- a/test/perf.zig
+++ b/test/perf.zig
@@ -695,7 +695,7 @@ fn measureTerm(op: TermOp, fx: TermFixture, reps: usize) !Cell {
pump(core);
}
_ = try frame(core);
- const motion_rows = if (op == .key_down) (try pardes.edit.paneCursorLines(core, &pane.body)).len else 0;
+ const motion_rows = if (op == .key_down) (try pardes.edit.paneCursorLines(core.editor(), &pane.body)).len else 0;
if (op == .key_down and motion_rows < 3) return error.EmptyTerminalFixture;
var cols = screen_cols;