terminal: eraseRows sets dirty bits

This commit is contained in:
Mitchell Hashimoto
2024-05-07 10:38:27 -07:00
parent f975861891
commit cd42888182

View File

@ -2322,6 +2322,10 @@ pub fn eraseRows(
// Our new size is the amount we scrolled // Our new size is the amount we scrolled
chunk.page.data.size.rows = @intCast(scroll_amount); chunk.page.data.size.rows = @intCast(scroll_amount);
erased += chunk.end; erased += chunk.end;
// Set all the rows as dirty
var dirty = chunk.page.data.dirtyBitSet();
dirty.setRangeValue(.{ .start = 0, .end = chunk.page.data.size.rows }, true);
} }
// If we deleted active, we need to regrow because one of our invariants // If we deleted active, we need to regrow because one of our invariants