clear the last line when we scroll up

This commit is contained in:
Mitchell Hashimoto
2022-05-21 19:13:01 -07:00
parent acd45efe64
commit 02962d1437

View File

@ -517,6 +517,8 @@ pub fn scrollUp(self: *Terminal) void {
defer tracy.end(); defer tracy.end();
self.screen.scroll(1); self.screen.scroll(1);
const last = self.screen.getRow(self.rows - 1);
for (last) |*cell| cell.char = 0;
} }
/// Scroll the given region up. /// Scroll the given region up.