Skip to content

Commit

Permalink
widgets.TextView: add intCast
Browse files Browse the repository at this point in the history
  • Loading branch information
knightpp authored and rockorager committed Oct 16, 2024
1 parent f01e29c commit 1421315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/TextView.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down

0 comments on commit 1421315

Please sign in to comment.