fix(terminal): correctly use slow path for left/right scroll margin

This commit is contained in:
Qwerasd
2024-03-25 19:38:39 -06:00
parent 23d32e248e
commit aadf795d28

View File

@ -1085,7 +1085,7 @@ pub fn index(self: *Terminal) !void {
try self.screen.cursorDownScroll(); try self.screen.cursorDownScroll();
} else { } else {
// Slow path for left and right scrolling region margins. // Slow path for left and right scrolling region margins.
if (self.scrolling_region.left != 0 and if (self.scrolling_region.left != 0 or
self.scrolling_region.right != self.cols - 1) self.scrolling_region.right != self.cols - 1)
{ {
self.scrollUp(1); self.scrollUp(1);