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/Store.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Store.zig') diff --git a/src/Store.zig b/src/Store.zig index 8b8db030..f6e4919f 100644 --- a/src/Store.zig +++ b/src/Store.zig @@ -9,7 +9,6 @@ const std = @import("std"); const pardes = @import("pardes.zig"); const dump = @import("dump.zig"); const layout = @import("layout.zig"); -const exec = @import("exec.zig"); const Pardes = pardes.Pardes; /// This session keeps this many closed panes, the newest. @@ -210,7 +209,7 @@ pub fn reopen(s: *Store, p: *Pardes, serial: u32, from: usize) bool { layout.giveBack(p, free, g, place.below, place.rows) else false; - if (!placed) exec.placeNew(p, from, from, free, .doc); + if (!placed) layout.placeNew(p, from, from, free, .doc); if (layout.findPane(p, free) == null) { p.removePane(free, null) catch |err| p.reportError(from, "reopen", err); return false; -- cgit v1.3