diff --git a/src/widgets/border.zig b/src/widgets/border.zig index e652c30..e8a710b 100644 --- a/src/widgets/border.zig +++ b/src/widgets/border.zig @@ -28,5 +28,5 @@ pub fn all(win: Window, style: Style) Window { win.writeCell(i, 0, .{ .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 }); }