summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/panes.zig b/core/panes.zig
index b928917a..72ca3eea 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -144,7 +144,7 @@ pub const Pane = struct {
/// closes with it (layout.zig, "Attached panes"). An owner that is
/// gone, or a pane no longer right under its owner's group, leaves it
/// an ordinary pane (layout.keepGroups).
- attached_to: ?u32 = null,
+ docked_to: ?u32 = null,
/// This pane is a query pane: its line 1 the query, its rows made live
/// from a source (Query.zig, gpa-owned).
query: ?*Query = null,
@@ -1437,7 +1437,7 @@ pub fn removePane(p: *Pardes, id: usize, to: ?usize) error{OutOfMemory}!void {
const pane = p.panes[id] orelse return;
// What is attached 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.attached_to == pane.serial) {
+ 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);