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/Dir.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/Dir.zig')
| -rw-r--r-- | src/Dir.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Dir.zig b/src/Dir.zig index 65e18c1a..337a09be 100644 --- a/src/Dir.zig +++ b/src/Dir.zig @@ -9,7 +9,7 @@ const std = @import("std"); const pardes = @import("pardes.zig"); const panes = @import("panes.zig"); const config = @import("config.zig"); -const exec = @import("exec.zig"); +const layout = @import("layout.zig"); const filesystem = @import("fs.zig"); const limits = @import("memory.zig").limits; const Pardes = pardes.Pardes; @@ -206,7 +206,7 @@ pub fn look(p: *Pardes, from: usize, dir: []const u8) void { }; const pane = open(p, free, name, names) catch |err| return p.reportError(from, "look", err); const failures = p.fs.failures; - exec.placeNew(p, from, from, free, .doc); + layout.placeNew(p, from, from, free, .doc); // Refused a place: that is the look's one failure. if (p.fs.failures != failures) return; fit(p, pane, @max(1, p.view().rects[free].w -| config.GUTTER)); |
