mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
terminal: clearcells only decs cursor ref if same page
This commit is contained in:
@ -821,7 +821,9 @@ pub fn clearCells(
|
|||||||
// Fast-path, the style ID matches, in this case we just update
|
// Fast-path, the style ID matches, in this case we just update
|
||||||
// our own ref and continue. We never delete because our style
|
// our own ref and continue. We never delete because our style
|
||||||
// is still active.
|
// is still active.
|
||||||
if (cell.style_id == self.cursor.style_id) {
|
if (page == &self.cursor.page_pin.page.data and
|
||||||
|
cell.style_id == self.cursor.style_id)
|
||||||
|
{
|
||||||
self.cursor.style_ref.?.* -= 1;
|
self.cursor.style_ref.?.* -= 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user