mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
Terminal: keep cross-boundary rows dirty in {insert,delete}Lines
This commit is contained in:
@@ -1690,6 +1690,10 @@ pub fn insertLines(self: *Terminal, count: usize) void {
|
||||
// Continue the loop to try handling this row again.
|
||||
continue;
|
||||
};
|
||||
|
||||
// The clone operation may overwrite the dirty flag, so make
|
||||
// sure the row is still marked dirty.
|
||||
dst_row.dirty = true;
|
||||
} else {
|
||||
if (!left_right) {
|
||||
// Swap the src/dst cells. This ensures that our dst gets the
|
||||
@@ -1888,6 +1892,10 @@ pub fn deleteLines(self: *Terminal, count: usize) void {
|
||||
// Continue the loop to try handling this row again.
|
||||
continue;
|
||||
};
|
||||
|
||||
// The clone operation may overwrite the dirty flag, so make
|
||||
// sure the row is still marked dirty.
|
||||
dst_row.dirty = true;
|
||||
} else {
|
||||
if (!left_right) {
|
||||
// Swap the src/dst cells. This ensures that our dst gets the
|
||||
|
||||
Reference in New Issue
Block a user