Skip to content

Commit

Permalink
Fix !_noFlushOnEnd not flushing (#17212)
Browse files Browse the repository at this point in the history
This simply copies a bit more from `VtEngine::EndPaint`'s
`_noFlushOnEnd` handling which already seems to fix the linked issue.

Closes #17204

(cherry picked from commit 0b76c51)
Service-Card-Id: 92516193
Service-Version: 1.21
  • Loading branch information
lhecker authored and DHowett committed May 13, 2024
1 parent 1f54562 commit d838ce5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/vt/XtermEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d838ce5

Please sign in to comment.