diff options
Diffstat (limited to 'test/panes.zig')
| -rw-r--r-- | test/panes.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/panes.zig b/test/panes.zig index 27598334..a0354ba4 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -3796,7 +3796,7 @@ test "a terminal keeps its tag and two body rows through a squeeze, a drag and a const floor = p.panes[term].?.tag_rows + layout.min_body_rows; // Squeezed by the weights: the others give it its floor. p.panes[term].?.vweight = 0.01; - for (p.col_panes[col][0..p.col_n[col]]) |k| if (k != term) { + for (p.cols[col].panes[0..p.cols[col].n]) |k| if (k != term) { p.panes[k].?.vweight = 1000; }; p.sync(); @@ -3809,11 +3809,11 @@ test "a terminal keeps its tag and two body rows through a squeeze, a drag and a // A drag of the grip under it up to its tag stops at the floor; one // the other way takes a text pane down to its tag alone. const k = layout.findPane(p, term).?.idx; - if (k + 1 < p.col_n[col]) { + if (k + 1 < p.cols[col].n) { layout.applyRowSplit(p, col, k, p.rects[term].y); p.sync(); try std.testing.expectEqual(floor, p.rects[term].h); - const text = p.col_panes[col][k + 1]; + const text = p.cols[col].panes[k + 1]; layout.applyRowSplit(p, col, k, p.screen_h); p.sync(); try std.testing.expect(p.rects[text].h <= p.panes[text].?.tag_rows); |
