summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 1356874a..b715bae1 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -987,7 +987,7 @@ pub const Zerox = struct {
if (f.output != null or f.listing != null or f.mini != null) return c.p.reportFailure(c.id, "Zerox: only a file pane takes it");
const free = c.p.freeSlot() orelse return c.p.reportError(c.id, "Zerox", error.NoPaneSlots);
_ = panes.File.zerox(c.p, c.id, free) catch |err| return c.p.reportError(c.id, "Zerox", err);
- exec.placeNew(c.p, c.id, c.id, free, .doc);
+ layout.placeNew(c.p, c.id, c.id, free, .doc);
}
};
@@ -1320,7 +1320,7 @@ pub const Tutor = struct {
pub fn run(c: Ctx) void {
const free = c.p.freeSlot() orelse return c.p.reportError(c.id, "Tutor", error.NoPaneSlots);
_ = panes.openTutorView(c.p, free) catch |err| return c.p.reportError(c.id, "Tutor", err);
- exec.placeNew(c.p, c.id, c.id, free, .doc); // a doc like any other
+ layout.placeNew(c.p, c.id, c.id, free, .doc); // a doc like any other
}
};
@@ -1601,7 +1601,7 @@ pub const Follow = struct {
if (col + 1 < v.ncol) {
c.p.exec_column = col + 1;
defer c.p.exec_column = null;
- exec.placeNew(c.p, c.id, null, free, .scratch);
+ layout.placeNew(c.p, c.id, null, free, .scratch);
if (c.p.unplaced.isSet(free)) return;
} else if (!layout.splitColumn(c.p, last, free, false)) {
c.p.unplaced.set(free);