summaryrefslogtreecommitdiff
path: root/src/views.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/views.zig')
-rw-r--r--src/views.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/views.zig b/src/views.zig
index 953b39a4..3cdbc8aa 100644
--- a/src/views.zig
+++ b/src/views.zig
@@ -341,7 +341,7 @@ fn unpark(p: *Pardes, k: u8) void {
layout.compute(p);
// Its terminals' cursors moved while it was out: each pan follows.
for (p.panes, 0..) |s, id| if (s) |pane| {
- pane.pan = pardes.panes.terminal.panFor(p, pane, p.view().rects[id]);
+ pane.pan = pane.panFor(p, p.view().rects[id]);
};
}
@@ -642,6 +642,7 @@ test "registers are the session's: yanked in one view, put in another" {
}
test "a terminal shown at two sizes takes the size of the view that typed into it last" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const gpa = testing.allocator;
const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 80, .rows = 24 });
defer p.deinit();
@@ -837,6 +838,7 @@ test "a view not live keeps its place in a text another view edits" {
}
test "a terminal shown in a view shorter than it keeps its cursor in sight" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const gpa = testing.allocator;
const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 80, .rows = 20 });
defer p.deinit();