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/Store.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/Store.zig')
| -rw-r--r-- | core/Store.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Store.zig b/core/Store.zig index 82e3c5bf..ac9387cb 100644 --- a/core/Store.zig +++ b/core/Store.zig @@ -28,7 +28,7 @@ pub const Closed = struct { /// brought back, it takes them from that pane alone. gainer: u32, below: bool, - /// The pane it was attached to, by serial (0 none). + /// The pane it was docked to, by serial (0 none). owner: u32, rows: u16, /// What its Panes row shows: its file, command or directory. @@ -78,7 +78,7 @@ pub fn clone(s: *const Store, gpa: std.mem.Allocator) Store { // ---- the closed panes ---- /// Pane `id`, about to close, kept: what it was (a one-pane Dump) and -/// where (its column, its rows, what it was attached to). Null for a pane +/// where (its column, its rows, what it was docked to). Null for a pane /// that is no pane of the user's: a query pane, a preview, one carried to /// another window (`away`), one made and refused in the same step (never /// announced), or one whose dump fails or is too big. `close` finishes it @@ -186,7 +186,7 @@ pub fn closedBySerial(s: *const Store, serial: u32) ?*Closed { } /// Closed pane `serial` of this session made again, where it was: beside -/// the pane its rows went to, taking them from that pane alone (attached +/// the pane its rows went to, taking them from that pane alone (docked /// again to its owner when that is still open), else placed as a new pane /// from `from`. False when it is not this session's, or its dump will not /// load; the keyboard on it otherwise. @@ -204,7 +204,7 @@ pub fn reopen(s: *Store, p: *Pardes, serial: u32, from: usize) bool { const owner = if (place.owner != 0) p.paneBySerial(place.owner) else null; const gainer = if (place.gainer != 0) p.paneBySerial(place.gainer) else null; const placed = if (owner) |o| - layout.attachFrom(p, o, free, place.rows, o) + layout.dockFrom(p, o, free, place.rows, o) else if (gainer) |g| layout.giveBack(p, free, g, place.below, place.rows) else |
