diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 19:22:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 19:51:13 -0300 |
| commit | 4e1432049765be6e793a3834c93c4cd5318e82bc (patch) | |
| tree | aa8e98c4cb2b7ee6ba33a49255fa85cab0089e2d /core/Handover.zig | |
| parent | 486f347adeed5bac6aaabe8be34e6a69bf323a62 (diff) | |
| parent | 2d75490196a9d15eff6ac471e9584101a5697afe (diff) | |
| download | pardes-4e1432049765be6e793a3834c93c4cd5318e82bc.tar.gz pardes-4e1432049765be6e793a3834c93c4cd5318e82bc.zip | |
integration: six slot fields typed, the docking vocabulary, the Mac's callbacks and consumer-test, on six small faults: pardes-slots (Pipe.PendingPipe.pane, Ask.wait.pane, theme_file_pane, ThemeFileRequest.pane as Pane.Id; Authority.view_of and Peer.view as View.Id; layout.dockFrom and the prose; macos State.callbacks; the build step consumer-test) and pardes-merge42; one conflict, in Peers.detach, where the pair's lifetime rule (daemon.keepSession) and the view's type (peer.view.index()) met on neighbouring lines: both kept; tui core-test 874/1031 (157 skipped), shell-test 1073/1076, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; this line carries the client's heap corruption that came with pardes-merge40 (a fix is being made): not gated further until it has it
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Handover.zig')
| -rw-r--r-- | core/Handover.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/Handover.zig b/core/Handover.zig index dde31f8b..6f7340b2 100644 --- a/core/Handover.zig +++ b/core/Handover.zig @@ -33,7 +33,7 @@ const MAX_PANES = pardes.MAX_PANES; /// libc: fork and exec of a window, and file calls in the cancelable carry task that must not see its cancel (its defer's unlink). const libc = std.c; -/// What a grip carries out of its window: one pane with the panes attached +/// What a grip carries out of its window: one pane with the panes docked /// to it, or a whole column. pub const Kind = enum { pane, column }; @@ -46,7 +46,7 @@ const Carried = struct { /// Each pane as dump.savePane makes it, top to bottom. panes: []const []const u8, weights: []const f32, - /// Which of them each one is attached to (layout.zig, "Attached panes"). + /// Which of them each one is docked to (layout.zig, "Docked panes"). owners: []const ?u32, }; pub const carried_magic = "pardes-carried\n"; @@ -84,8 +84,8 @@ pub fn deinit(h: *Handover, gpa: std.mem.Allocator) void { h.bytes = null; } -/// Pane slot `at` (with what is attached to it, or alone when it is itself -/// an attachment), or column `at`, released past the window's edge: dumped, +/// Pane slot `at` (with what is docked to it, or alone when it is itself +/// a docked pane), or column `at`, released past the window's edge: dumped, /// and the host asked to carry it. Only text panes travel: a terminal's /// shell is this process's child and would die with the pane here. pub fn begin(h: *Handover, p: *Pardes, carried: Kind, at: usize) void { @@ -273,7 +273,7 @@ pub fn adopt(p: *Pardes, bytes: []const u8) !usize { n += 1; if (pane.file == null) return error.NotText; } - // An attachment names its owner by its place in the dump. + // A docked pane names its owner by its place in the dump. for (st.owners, 0..) |owner, k| { const at = owner orelse continue; if (at >= n) continue; @@ -299,7 +299,7 @@ pub fn adopt(p: *Pardes, bytes: []const u8) !usize { for (0..p.view().ncol) |c| for (p.view().cols[c].panes[0..p.view().cols[c].n]) |id| { heights[id] = p.view().rects[id].h; }; - // The group under the pointer (a pane with what is attached to it): the + // The group under the pointer (a pane with what is docked to it): the // new panes go under all of it, out of its owner's rows. var after: usize = p.view().cols[tc].n; var root: ?usize = null; @@ -315,7 +315,7 @@ pub fn adopt(p: *Pardes, bytes: []const u8) !usize { } if (root) |owner| { const r = p.view().rects[owner]; - // Down to the pointer's row; let go over one of its attachments, + // Down to the pointer's row; let go over one of its docked panes, // half of it. const keeps = @max(layout.minRows(p, owner), if (y >= r.y and y < r.y + r.h) (y - r.y) + 1 else r.h / 2); const give = heights[owner] -| keeps; |
