From 8903d352237919455996831047017ae57f2a83ef Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 05:42:57 -0300 Subject: layout: exec.placeNew moves into layout.zig as layout.placeNew, with NewPane, the type only it switches on, and acmeColumn and columnOf, which only it calls, before canSplitCol, since 29 of its 41 references are layout's own (acmePlace, takeRoom, splitTallest, placedRoomy); callers name layout, and Dir, mini and Store, which imported exec for it alone, import layout instead Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/builtins.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/builtins.zig') 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); -- cgit v1.3