diff options
Diffstat (limited to 'src/exec.zig')
| -rw-r--r-- | src/exec.zig | 6 |
1 files changed, 3 insertions, 3 deletions
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; }; |
