From 3624c0e0bf0b455c4323fc8ba9f10a305f11afb2 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:37:54 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/pardes.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pardes.zig') 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")); -- cgit v1.3