don't draw cursor on scroll

This commit is contained in:
Mitchell Hashimoto
2022-07-12 21:10:35 -07:00
parent dcc5fe34cf
commit da622abd77

View File

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