widgets.TextView: add intCast

This commit is contained in:
Danylo Kondratiev 2024-10-16 22:55:50 +03:00 committed by Tim Culverhouse
parent f01e29ce5c
commit 142131595a

View file

@ -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,
});
}