summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/hxdiff.zig2
-rw-r--r--test/lspbench.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 22d8067d..e79a6bb6 100644
--- a/test/hxdiff.zig
+++ b/test/hxdiff.zig
@@ -488,7 +488,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 core.paneCursorLines(pane);
+ const lines = try pardes.edit.paneCursorLines(core, pane);
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/lspbench.zig b/test/lspbench.zig
index 59cac155..7c4e8753 100644
--- a/test/lspbench.zig
+++ b/test/lspbench.zig
@@ -22,7 +22,7 @@ const Anchor = struct {
};
const anchors = [_]Anchor{
- .{ .file = "src/pardes.zig", .needle = "modal.cursorLineCount(text)", .at = 6, .kind = .definition, .expect = "modal.zig" },
+ .{ .file = "src/edit.zig", .needle = "modal.cursorLineCount(text)", .at = 6, .kind = .definition, .expect = "modal.zig" },
.{ .file = "src/lsp/lsp.zig", .needle = "lineCol(source", .at = 0, .kind = .definition, .expect = "lsp.zig" },
.{ .file = "src/lsp/lsp.zig", .needle = "std.mem.count(u8", .at = 8, .kind = .definition, .expect = "mem.zig" },
.{ .file = "src/lsp/lsp.zig", .needle = "lineCol(source", .at = 0, .kind = .hover, .expect = "" },
diff --git a/test/perf.zig b/test/perf.zig
index 057725fd..7d3b5e3d 100644
--- a/test/perf.zig
+++ b/test/perf.zig
@@ -527,7 +527,7 @@ fn measureTerm(op: TermOp, fx: TermFixture, reps: usize) !Cell {
pump(core);
}
_ = try frame(core);
- const motion_rows = if (op == .key_down) (try core.paneCursorLines(pane)).len else 0;
+ const motion_rows = if (op == .key_down) (try pardes.edit.paneCursorLines(core, pane)).len else 0;
if (op == .key_down and motion_rows < 3) return error.EmptyTerminalFixture;
var cols = screen_cols;