From 0fe114298908c869c425684575961b560d6f83a8 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 3 May 2024 12:30:04 -0500 Subject: [PATCH] widgets(nvim): fix scroll down --- src/widgets/nvim.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widgets/nvim.zig b/src/widgets/nvim.zig index c76456a..e59c7ca 100644 --- a/src/widgets/nvim.zig +++ b/src/widgets/nvim.zig @@ -568,8 +568,7 @@ pub fn Nvim(comptime T: type) type { if (row + rows > bot) break; var col: usize = left; while (col < right) : (col += 1) { - if (row + rows < self.screen.height) return; - const cell = self.screen.readCell(col, row + rows) orelse unreachable; + const cell = self.screen.readCell(col, row + rows) orelse return; self.screen.writeCell(col, row, cell); } }