From 65df9f46188d72d9bda12cef5f1643b096922977 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 22 Aug 2023 12:23:27 -0700 Subject: [PATCH] terminal/kitty-gfx: down movement off by one --- src/terminal/kitty/graphics_exec.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/kitty/graphics_exec.zig b/src/terminal/kitty/graphics_exec.zig index ae36a74cd..a221e4e6d 100644 --- a/src/terminal/kitty/graphics_exec.zig +++ b/src/terminal/kitty/graphics_exec.zig @@ -202,7 +202,7 @@ fn display( // If we are moving beneath the screen we need to scroll. // TODO: handle scroll regions - var new_y = terminal.screen.cursor.y + image_grid_size.rows; + var new_y = terminal.screen.cursor.y + image_grid_size.rows + 1; if (new_y >= terminal.rows) { const scroll_amount = (new_y + 1) - terminal.rows; terminal.screen.scroll(.{ .screen = @intCast(scroll_amount) }) catch |err| {