diff options
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 2151126d..dc95e0ec 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -2388,11 +2388,11 @@ test "a column takes panes until their documented minimums fill it, not until no const avail = p.screen_h - (p.topBarHeight() + layout.columnBarHeight(p)); for (0..p.ncol) |c| { var need: u32 = 0; - for (p.col_panes[c][0..p.col_n[c]]) |k| need += layout.minRows(p, k); + for (p.cols[c].panes[0..p.cols[c].n]) |k| need += layout.minRows(p, k); // Refused only when one more pane's tag and two rows would not fit. - if (p.col_n[c] > 1) try testing.expect(avail - need < 3); + if (p.cols[c].n > 1) try testing.expect(avail - need < 3); // Every pane keeps its minimum. - for (p.col_panes[c][0..p.col_n[c]]) |k| try testing.expect(p.rects[k].h >= layout.minRows(p, k)); + for (p.cols[c].panes[0..p.cols[c].n]) |k| try testing.expect(p.rects[k].h >= layout.minRows(p, k)); } } |
