diff options
Diffstat (limited to 'core/panes.zig')
| -rw-r--r-- | core/panes.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/panes.zig b/core/panes.zig index 68304437..174af241 100644 --- a/core/panes.zig +++ b/core/panes.zig @@ -147,10 +147,10 @@ pub const Pane = struct { vweight: f32 = 1, /// A folded pane keeps its expansion weight, but occupies only its tag row. collapsed: bool = false, - /// The serial of the pane this one is attached to, its owner: a query + /// The serial of the pane this one is docked to, its owner: a query /// pane or its +Preview sits right under its owner in the owner's /// column, takes its rows from the owner alone, and moves, folds and - /// closes with it (layout.zig, "Attached panes"). An owner that is + /// closes with it (layout.zig, "Docked panes"). An owner that is /// gone, or a pane no longer right under its owner's group, leaves it /// an ordinary pane (layout.keepGroups). docked_to: ?u32 = null, @@ -1476,14 +1476,14 @@ pub fn paneDir(pane: *const Pane) []const u8 { pub fn removePane(p: *Pardes, id: usize, to: ?usize) error{OutOfMemory}!void { const v = p.view(); const pane = p.panes[id] orelse return; - // What is attached to it closes with it, first, each giving its rows + // What is docked to it closes with it, first, each giving its rows // back to it: then its rows, theirs among them, go where a pane's go. for (0..p.panes.len) |k| if (p.panes[k]) |other| if (k != id and other.docked_to == pane.serial) { if (layout.ownerOf(p, k) != id) continue; try p.removePane(k, id); layout.compute(p); }; - // An attachment's rows go back to its owner and nobody else. + // A docked pane's rows go back to its owner and nobody else. const owner = layout.ownerOf(p, id); const place = layout.findPane(p, id); const emptied = if (place) |f| (if (v.cols[f.col].n == 1) f.col else null) else null; |
