terminal: erase display complete needs to reset row wrap state

This commit is contained in:
Mitchell Hashimoto
2023-03-02 13:20:06 -08:00
parent e28d20a05d
commit 5573df4947

View File

@ -904,7 +904,11 @@ pub fn eraseDisplay(
switch (mode) {
.complete => {
var it = self.screen.rowIterator(.active);
while (it.next()) |row| row.clear(self.screen.cursor.pen);
while (it.next()) |row| {
row.setWrapped(false);
row.setDirty(true);
row.clear(self.screen.cursor.pen);
}
// Unsets pending wrap state
self.screen.cursor.pending_wrap = false;