We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a08666b commit 2096fa5Copy full SHA for 2096fa5
src/cascadia/TerminalCore/TerminalApi.cpp
@@ -337,11 +337,9 @@ bool Terminal::EraseInDisplay(const DispatchTypes::EraseType eraseType)
337
// and we have to make sure we erase that text
338
auto eraseStart = _mutableViewport.Height();
339
auto eraseEnd = _buffer->GetLastNonSpaceCharacter(_mutableViewport).Y;
340
- auto eraseIter = OutputCellIterator(UNICODE_SPACE, _buffer->GetCurrentAttributes(), _mutableViewport.RightInclusive() * (eraseEnd - eraseStart + 1));
341
for (SHORT i = eraseStart; i <= eraseEnd; i++)
342
{
343
- COORD erasePos{ 0, i };
344
- _buffer->Write(eraseIter, erasePos);
+ _buffer->GetRowByOffset(i).Reset(_buffer->GetCurrentAttributes());
345
}
346
347
// Reset the scroll offset now because there's nothing for the user to 'scroll' to
0 commit comments