widget(CodeView): fix int type

This commit is contained in:
Tim Culverhouse 2024-10-14 18:28:04 -05:00
parent 142225a48c
commit ab2b356a1f

View file

@ -98,7 +98,7 @@ fn drawCode(self: *@This(), win: vaxis.Window, buffer: Buffer, opts: DrawOptions
self.scroll_view.writeCell(win, pos.x, pos.y, cell);
} else {
self.scroll_view.writeCell(win, pos.x, pos.y, .{
.char = .{ .grapheme = cluster, .width = width },
.char = .{ .grapheme = cluster, .width = @intCast(width) },
.style = style,
});
}