From 1028fe1c56809296a85d975807b46a0c633bcddc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 17 Aug 2024 22:02:48 -0700 Subject: [PATCH] terminal: only call new method --- src/terminal/Terminal.zig | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/terminal/Terminal.zig b/src/terminal/Terminal.zig index dd30d49b7..667e28650 100644 --- a/src/terminal/Terminal.zig +++ b/src/terminal/Terminal.zig @@ -1114,17 +1114,6 @@ pub fn index(self: *Terminal) !void { self.scrolling_region.left == 0 and self.scrolling_region.right == self.cols - 1) { - // If our scrolling region is the full screen, this is an - // easy and fast operation since we can just call grow. - if (self.scrolling_region.bottom == self.rows - 1) { - try self.screen.cursorDownScroll(); - return; - } - - // Our scrolling region is partially down the screen. In this - // case we need to move the top of the scroll region into - // scrollback while keeping the bottom of the scroll region - // at the bottom of the screen. try self.screen.cursorScrollAbove(); return; }