terminal: when reflowing, set style to default to prevent integrity fail

This commit is contained in:
Mitchell Hashimoto
2024-03-24 15:22:01 -07:00
parent be3749f1ad
commit 3d6ae29dc3

View File

@ -1112,6 +1112,12 @@ fn reflowPage(
dst_cursor.page_cell.* = src_cursor.page_cell.*;
dst_cursor.page_cell.content_tag = .codepoint;
// Unset the style ID so our integrity checks don't fire.
// We handle style fixups after this switch block.
if (comptime std.debug.runtime_safety) {
dst_cursor.page_cell.style_id = stylepkg.default_id;
}
// Copy the graphemes
const src_cps = src_cursor.page.lookupGrapheme(src_cursor.page_cell).?;
for (src_cps) |cp| {