widgets.TextView: add intCast
This commit is contained in:
parent
f01e29ce5c
commit
142131595a
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ pub fn draw(self: *@This(), win: vaxis.Window, buffer: Buffer) void {
|
||||||
};
|
};
|
||||||
|
|
||||||
self.scroll_view.writeCell(win, pos.x, pos.y, .{
|
self.scroll_view.writeCell(win, pos.x, pos.y, .{
|
||||||
.char = .{ .grapheme = cluster, .width = width },
|
.char = .{ .grapheme = cluster, .width = @intCast(width) },
|
||||||
.style = style,
|
.style = style,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue