diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-24 10:05:01 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-24 10:14:38 -0300 |
| commit | 873f81ccb1449119846de8d4e6e0e8899236100a (patch) | |
| tree | 66ad8ca2e913e4a954be947c54aa0b31a0c9fdb0 /src/exec.zig | |
| parent | 19c83c90ebed4817acd7a12d4d225f5af0957bc1 (diff) | |
| download | pardes-873f81ccb1449119846de8d4e6e0e8899236100a.tar.gz pardes-873f81ccb1449119846de8d4e6e0e8899236100a.zip | |
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
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; }; |
