Fix !_noFlushOnEnd not flushing (#17212)

This simply copies a bit more from `VtEngine::EndPaint`'s
`_noFlushOnEnd` handling which already seems to fix the linked issue.

Closes #17204
This commit is contained in:
Leonard Hecker 2024-05-08 22:24:21 +02:00 committed by GitHub
parent 6d0342f0bb
commit 0b76c51ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,10 @@ XtermEngine::XtermEngine(_In_ wil::unique_hfile hPipe,
// have been reset in the EndPaint call. But since that's not going to
// happen now, we need to reset it here, otherwise we may mistakenly skip
// the flush on the next frame.
if (!_noFlushOnEnd)
{
_Flush();
}
_noFlushOnEnd = false;
return hr;
}