terminal: PageList resize should set styled on row if style copy

This commit is contained in:
Mitchell Hashimoto
2024-03-09 14:06:07 -08:00
parent 3154686f9e
commit 6255ab7f20

View File

@ -861,6 +861,7 @@ fn reflowPage(
); );
dst_md.ref += 1; dst_md.ref += 1;
dst_cursor.page_cell.style_id = dst_md.id; dst_cursor.page_cell.style_id = dst_md.id;
dst_cursor.page_row.styled = true;
} }
} }
@ -4981,6 +4982,9 @@ test "PageList resize reflow less cols copy style" {
style_id, style_id,
).?; ).?;
try testing.expect(style.flags.bold); try testing.expect(style.flags.bold);
const row = rac.row;
try testing.expect(row.styled);
} }
} }
} }