File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/cascadia/TerminalCore Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -337,11 +337,9 @@ bool Terminal::EraseInDisplay(const DispatchTypes::EraseType eraseType)
337
337
// and we have to make sure we erase that text
338
338
auto eraseStart = _mutableViewport.Height ();
339
339
auto eraseEnd = _buffer->GetLastNonSpaceCharacter (_mutableViewport).Y ;
340
- auto eraseIter = OutputCellIterator (UNICODE_SPACE, _buffer->GetCurrentAttributes (), _mutableViewport.RightInclusive () * (eraseEnd - eraseStart + 1 ));
341
340
for (SHORT i = eraseStart; i <= eraseEnd; i++)
342
341
{
343
- COORD erasePos{ 0 , i };
344
- _buffer->Write (eraseIter, erasePos);
342
+ _buffer->GetRowByOffset (i).Reset (_buffer->GetCurrentAttributes ());
345
343
}
346
344
347
345
// Reset the scroll offset now because there's nothing for the user to 'scroll' to
You can’t perform that action at this time.
0 commit comments