summaryrefslogtreecommitdiff
path: root/core/Jump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Jump.zig')
-rw-r--r--core/Jump.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Jump.zig b/core/Jump.zig
index 26b3c4d9..66dbd2b6 100644
--- a/core/Jump.zig
+++ b/core/Jump.zig
@@ -404,11 +404,11 @@ test "jump history terminal rectangle follows output and clears on reflow" {
const p = try Pardes.init(std.testing.allocator, .{ .cols = 60, .rows = 12, .tty_only = true });
defer p.deinit();
const pane = p.panes[0].?;
- p.update(.{ .output = .{ .pane = 0, .bytes = "alpha bravo\r\nsecond line\r\n" } });
+ p.update(.{ .output = .{ .pane = .at(0), .bytes = "alpha bravo\r\nsecond line\r\n" } });
pane.sel[0] = .{ .state = .done, .c0 = 0, .c1 = 4, .r0 = BOX_H, .r1 = BOX_H };
try edit.capturePointerSelection(p, pane, 0);
try std.testing.expectEqualStrings("alpha", try edit.selectionText(p, pane, pane.sel[0]));
- for (0..40) |_| p.update(.{ .output = .{ .pane = 0, .bytes = "more output\r\n" } });
+ for (0..40) |_| p.update(.{ .output = .{ .pane = .at(0), .bytes = "more output\r\n" } });
try std.testing.expectEqualStrings("alpha", try edit.selectionText(p, pane, pane.sel[0]));
pane.resizeGrid(pane.cols - 1, pane.rows);
try std.testing.expect(pane.pointerSelection(pane.sel[0]) == null);