Skip to content

Commit

Permalink
Fixes issue with text copied to clipboard not having proper line endi…
Browse files Browse the repository at this point in the history
…ngs. (#3239)
  • Loading branch information
d-bingham authored and carlos-zamora committed Oct 18, 2019
1 parent 4991b9f commit 5c55bb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cascadia/TerminalCore/TerminalApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ bool Terminal::EraseInLine(const ::Microsoft::Console::VirtualTerminal::Dispatch
}

auto eraseIter = OutputCellIterator(UNICODE_SPACE, _buffer->GetCurrentAttributes(), nlength);
_buffer->Write(eraseIter, startPos);

// Explicitly turn off end-of-line wrap-flag-setting when erasing cells.
_buffer->Write(eraseIter, startPos, false);
return true;
}

Expand Down

0 comments on commit 5c55bb8

Please sign in to comment.