From b3b19997ea2c1e5c3d1d429d3170f806abfca47c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 6 Jul 2023 10:31:47 -0700 Subject: [PATCH] terminal: scroll to row always tries to get it to the top --- src/terminal/Screen.zig | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/terminal/Screen.zig b/src/terminal/Screen.zig index a45650395..3c6c80ffe 100644 --- a/src/terminal/Screen.zig +++ b/src/terminal/Screen.zig @@ -1511,9 +1511,6 @@ fn scrollRow(self: *Screen, idx: RowIndex) void { const screen_idx = idx.toScreen(self); const screen_pt: point.ScreenPoint = .{ .y = screen_idx.screen }; - // If the point is already in our viewport, we do nothing. - if (screen_pt.inViewport(self)) return; - // Move the viewport so that the screen point is in view. We do the // @min here so that we don't scroll down below where our "bottom" // viewport is.