diff options
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 |
