mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-19 02:06:20 +03:00
terminal: handle row wrap integrity issues on reflow
This commit is contained in:
@ -1162,9 +1162,9 @@ fn reflowPage(
|
|||||||
// If we're still in a wrapped line at the end of our page,
|
// If we're still in a wrapped line at the end of our page,
|
||||||
// we traverse forward and continue reflowing until we complete
|
// we traverse forward and continue reflowing until we complete
|
||||||
// this entire line.
|
// this entire line.
|
||||||
if (src_cursor.page_row.wrap) {
|
if (src_cursor.page_row.wrap) wrap: {
|
||||||
src_completing_wrap = true;
|
src_completing_wrap = true;
|
||||||
src_node = src_node.next.?;
|
src_node = src_node.next orelse break :wrap;
|
||||||
src_cursor = ReflowCursor.init(&src_node.data);
|
src_cursor = ReflowCursor.init(&src_node.data);
|
||||||
continue :src_loop;
|
continue :src_loop;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user