From 873f81ccb1449119846de8d4e6e0e8899236100a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 24 Oct 2026 10:05:01 -0300 Subject: Search converge 1/6: attached panes, a pane under its owner on the owner's rows alone, fixed height, moving, folding and closing with it --- src/exec.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exec.zig') diff --git a/src/exec.zig b/src/exec.zig index eb15dbc9..a9c11049 100644 --- a/src/exec.zig +++ b/src/exec.zig @@ -1290,7 +1290,7 @@ fn pardesPlace(p: *Pardes, from: usize, id: usize, kind: NewPane) void { const nt = p.panes[id].?; switch (kind) { .scratch, .fs => if (layout.findPane(p, from)) |sf| { - layout.insert(p, sf.col, sf.idx + 1, id); + layout.insert(p, sf.col, layout.groupEnd(p, sf.col, sf.idx), id); layout.splitBelow(p, from, nt); } else atFoot(p, id), .shell => belowParent(p, from, id), @@ -1314,7 +1314,7 @@ fn atFoot(p: *Pardes, id: usize) void { fn belowParent(p: *Pardes, from: usize, id: usize) void { const parent = layout.splitParent(p, from); const f = layout.findPane(p, parent) orelse return atFoot(p, id); - layout.insert(p, f.col, f.idx + 1, id); + layout.insert(p, f.col, layout.groupEnd(p, f.col, f.idx), id); layout.splitBelow(p, parent, p.panes[id].?); } @@ -1344,7 +1344,7 @@ fn pardesDoc(p: *Pardes, from_id: usize, free: usize) void { }; }; if (!doc) if (layout.findPane(p, from_id)) |sf| { - layout.insert(p, sf.col, sf.idx + 1, free); + layout.insert(p, sf.col, layout.groupEnd(p, sf.col, sf.idx), free); layout.splitBelow(p, from_id, nt); // NOT splitParent: no bystander pays return; }; -- cgit v1.3