terminal: handle row wrap integrity issues on reflow

This commit is contained in:
Mitchell Hashimoto
2024-03-21 21:52:14 -07:00
parent 71c04db5a9
commit f848ed2a63

View File

@ -1162,9 +1162,9 @@ fn reflowPage(
// If we're still in a wrapped line at the end of our page,
// we traverse forward and continue reflowing until we complete
// this entire line.
if (src_cursor.page_row.wrap) {
if (src_cursor.page_row.wrap) wrap: {
src_completing_wrap = true;
src_node = src_node.next.?;
src_node = src_node.next orelse break :wrap;
src_cursor = ReflowCursor.init(&src_node.data);
continue :src_loop;
}