From da622abd7781eb09bf3bb612df9a109945aa3d37 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 12 Jul 2022 21:10:35 -0700 Subject: [PATCH] don't draw cursor on scroll --- src/Grid.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grid.zig b/src/Grid.zig index 91f9f7714..22eec614b 100644 --- a/src/Grid.zig +++ b/src/Grid.zig @@ -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),