diff options
Diffstat (limited to 'src/Jump.zig')
| -rw-r--r-- | src/Jump.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Jump.zig b/src/Jump.zig index 06cf8388..2e23d932 100644 --- a/src/Jump.zig +++ b/src/Jump.zig @@ -400,6 +400,7 @@ test "Back and Forward take the same steps from the mouse's side buttons and jum } test "jump history terminal rectangle follows output and clears on reflow" { + if (pardes.Term.ops == null) return error.SkipZigTest; // it reads the emulator const p = try Pardes.init(std.testing.allocator, .{ .cols = 60, .rows = 12, .tty_only = true }); defer p.deinit(); const pane = p.panes[0].?; @@ -409,7 +410,7 @@ test "jump history terminal rectangle follows output and clears on reflow" { 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" } }); try std.testing.expectEqualStrings("alpha", try edit.selectionText(p, pane, pane.sel[0])); - panes.terminal.resizeGrid(pane, pane.cols - 1, pane.rows); + pane.resizeGrid(pane.cols - 1, pane.rows); try std.testing.expect(pane.pointerSelection(pane.sel[0]) == null); try std.testing.expectEqual(.none, pane.sel[0].state); } |
