From dff38f84d1ebb1472ec4a920760dd54f317d2056 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Wed, 28 Feb 2024 16:14:55 -0600 Subject: [PATCH] border: fix all border limits --- src/widgets/border.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); }