border: fix all border limits

This commit is contained in:
Tim Culverhouse 2024-02-28 16:14:55 -06:00
parent ba29a71b3b
commit dff38f84d1

View file

@ -28,5 +28,5 @@ pub fn all(win: Window, style: Style) Window {
win.writeCell(i, 0, .{ .char = horizontal, .style = style }); win.writeCell(i, 0, .{ .char = horizontal, .style = style });
win.writeCell(i, h - 1, .{ .char = horizontal, .style = style }); win.writeCell(i, h - 1, .{ .char = horizontal, .style = style });
} }
return win.initChild(1, 1, .{ .limit = w - 2 }, .{ .limit = w - 2 }); return win.initChild(1, 1, .{ .limit = w - 2 }, .{ .limit = h - 2 });
} }