rows are dirty when initialized

This commit is contained in:
Mitchell Hashimoto
2022-09-10 11:01:40 -07:00
parent 08b7a866b6
commit 8995e74e23

View File

@ -818,6 +818,9 @@ pub fn getRow(self: *Screen, index: RowIndex) Row {
// Store the header // Store the header
row.storage[0].header.id = id; row.storage[0].header.id = id;
// Mark that we're dirty since we're a new row
row.storage[0].header.flags.dirty = true;
// We only need to fill with runtime safety because unions are // We only need to fill with runtime safety because unions are
// tag-checked. Otherwise, the default value of zero will be valid. // tag-checked. Otherwise, the default value of zero will be valid.
if (std.debug.runtime_safety) row.fill(.{}); if (std.debug.runtime_safety) row.fill(.{});