[PR #15929] AtlasEngine: Fix overly aggressive invalidation #30781

Open
opened 2026-01-31 09:42:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/15929

State: closed
Merged: Yes


When marking newly scrolled in rows as invalidated we used:

if (offset < 0)
    ...
else
    ...

But it should've been:

if (offset < 0)
    ...
else if (offset > 0)
    ...

Because now it always set the start of the invalidated rows range to 0.

Additionally, this includes a commented debug helper which I've used
to figure out an unrelated bug. During that search I found this bug.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15929 **State:** closed **Merged:** Yes --- When marking newly scrolled in rows as invalidated we used: ``` if (offset < 0) ... else ... ``` But it should've been: ``` if (offset < 0) ... else if (offset > 0) ... ``` Because now it always set the start of the invalidated rows range to 0. Additionally, this includes a commented debug helper which I've used to figure out an unrelated bug. During that search I found this bug.
claunia added the pull-request label 2026-01-31 09:42:54 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30781