summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:37:54 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:00:59 -0300
commit3624c0e0bf0b455c4323fc8ba9f10a305f11afb2 (patch)
treec658d6c0f803fcd9a39895cfccd2c7d90a5be0bf /src/pardes.zig
parentef78fbd9cefc17da4f4be82545a055ea4c6b591c (diff)
downloadpardes-3624c0e0bf0b455c4323fc8ba9f10a305f11afb2.tar.gz
pardes-3624c0e0bf0b455c4323fc8ba9f10a305f11afb2.zip
layout: movePlacement and movePane read each pane's rows off `rects` in a line where each built them from the columns' lists in seven; splitBelow's snap of its column's weights is snapColWeights; canSplitColumn folds into splitColumn, which looked its source up twice (the Newcol test asks canSplitCol of the column)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index bd79741f..72201360 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -3220,7 +3220,7 @@ test "Newcol refuses an unsplittable restored weight before spawning" {
try std.testing.expect(p.col_weight[0] > std.math.maxInt(u64) / 2);
try std.testing.expect(p.col_weight[0] % 2 == 1);
- try std.testing.expect(!layout.canSplitColumn(p, 0));
+ try std.testing.expect(!layout.canSplitCol(p, layout.findPane(p, 0).?.col));
const panes_before = p.panes;
const serial_before = p.next_serial;
try std.testing.expect(p.executeBuiltinLine(0, "Newcol"));