diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 05:42:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 05:48:17 -0300 |
| commit | 8903d352237919455996831047017ae57f2a83ef (patch) | |
| tree | 9876a3597a55b0b5fc16e535c1edd44eaed71e11 /src/builtins.zig | |
| parent | 29e6abf9ccb07b1c10997588e1cf4cfc1ed53021 (diff) | |
| download | pardes-8903d352237919455996831047017ae57f2a83ef.tar.gz pardes-8903d352237919455996831047017ae57f2a83ef.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 6 |
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); |
