From 142131595ac236d8c6174cf2c068fac0dfaa7e24 Mon Sep 17 00:00:00 2001 From: Danylo Kondratiev Date: Wed, 16 Oct 2024 22:55:50 +0300 Subject: [PATCH] widgets.TextView: add intCast --- src/widgets/TextView.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/TextView.zig b/src/widgets/TextView.zig index 9a8310d..f2f3733 100644 --- a/src/widgets/TextView.zig +++ b/src/widgets/TextView.zig @@ -184,7 +184,7 @@ pub fn draw(self: *@This(), win: vaxis.Window, buffer: Buffer) void { }; self.scroll_view.writeCell(win, pos.x, pos.y, .{ - .char = .{ .grapheme = cluster, .width = width }, + .char = .{ .grapheme = cluster, .width = @intCast(width) }, .style = style, }); }