fix build error

This commit is contained in:
Mitchell Hashimoto
2022-08-04 13:08:51 -07:00
parent 974138378b
commit f2e9746d2b

View File

@ -398,7 +398,7 @@ pub fn updateCells(self: *Grid, term: Terminal) !void {
} }
// Draw the cursor // Draw the cursor
if (self.cursor_visible and term.screen.displayIsBottom()) { if (self.cursor_visible and term.screen.viewportIsBottom()) {
self.cells.appendAssumeCapacity(.{ self.cells.appendAssumeCapacity(.{
.mode = @enumToInt(self.cursor_style), .mode = @enumToInt(self.cursor_style),
.grid_col = @intCast(u16, term.screen.cursor.x), .grid_col = @intCast(u16, term.screen.cursor.x),