From b66368dcabe0944a8b2a123e9471052fe279ae32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marlow=20D=2E=20Alfonso=20D=C3=ADaz?= Date: Wed, 28 Jan 2026 20:11:20 -0500 Subject: [PATCH] fix(CodeView): explicit casts for `pad_left` marked some casts as explicit with `@intCast()` to comply with compiler errors --- src/widgets/CodeView.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/CodeView.zig b/src/widgets/CodeView.zig index 4608b8e1..883af2d5 100644 --- a/src/widgets/CodeView.zig +++ b/src/widgets/CodeView.zig @@ -39,11 +39,11 @@ pub fn draw(self: *@This(), win: vaxis.Window, buffer: Buffer, opts: DrawOptions nl.draw(win.child(.{ .x_off = 0, .y_off = 0, - .width = pad_left, + .width = @intCast(pad_left), .height = win.height, }), self.scroll_view.scroll.y); } - self.drawCode(win.child(.{ .x_off = pad_left }), buffer, opts); + self.drawCode(win.child(.{ .x_off = @intCast(pad_left) }), buffer, opts); } fn drawCode(self: *@This(), win: vaxis.Window, buffer: Buffer, opts: DrawOptions) void {