summaryrefslogtreecommitdiff
path: root/src/ninep/cols.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep/cols.zig')
-rw-r--r--src/ninep/cols.zig11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ninep/cols.zig b/src/ninep/cols.zig
index d1ffc3c6..f53bb433 100644
--- a/src/ninep/cols.zig
+++ b/src/ninep/cols.zig
@@ -8,6 +8,7 @@ const pardes = @import("../pardes.zig");
const Pardes = pardes.Pardes;
const tree = @import("tree.zig");
const limits = @import("../memory.zig").limits;
+const panes = @import("../panes.zig");
const tagline = pardes.tagline;
const layout = pardes.layout;
const Text = pardes.panes.Text;
@@ -451,11 +452,11 @@ test "New and Term run at /tagexec and a column's exec, with no pane at all too"
while (p.ncol > 0) {
const first = p.panes[p.col_panes[0][0]].?.serial;
_ = th.wr(p, tree.Node.of(first, .ctl), "delete\n");
- if (p.anyPane() == null) break;
+ if (panes.anyPane(p) == null) break;
}
- try testing.expect(p.anyPane() == null);
+ try testing.expect(panes.anyPane(p) == null);
try testing.expectEqual(tree.Status.ok, th.wr(p, tagexec, line).reply.status);
- try testing.expect(p.anyPane() != null);
+ try testing.expect(panes.anyPane(p) != null);
}
}
@@ -564,7 +565,7 @@ test "a focus write makes its pane's column the active one: layout says so and p
defer p.deinit();
const left = p.panes[0].?.serial;
p.newColumn(p.active);
- p.newScratchFor(p.active, .fs); // fills the new, right column
+ panes.newScratchFor(p, p.active, .fs); // fills the new, right column
p.sync();
try testing.expectEqual(@as(usize, 1), layout.findPane(p, p.active).?.col);
var digits: [16]u8 = undefined;
@@ -690,7 +691,7 @@ test "a command run from a column's tag gets its pane in that column, not the la
const p = try th.withFile(testing.allocator, "x\n");
defer p.deinit();
p.newColumn(p.active);
- p.newScratchFor(p.active, .fs); // fills the new, right column
+ panes.newScratchFor(p, p.active, .fs); // fills the new, right column
p.sync();
const left = layout.columnSerial(p, 0);
try testing.expectEqual(tree.Status.ok, th.wr(p, Node.ofCol(left, .exec), "true\n").reply.status);