Hotfix block selection linebreaks in conhost (#15423)

This regressed in a1f42e8 which only made changes to Windows Terminal
but forgot to make equivalent ones in OpenConsole/conhost.
Without this fix, line breaks in block selections are missing if the
line doesn't force a wrap via an explicit newline.

Closes #15153

## Validation Steps Performed
* Run Far or print long lines of text
* Trigger block selection via Ctrl+M or Edit > Mark
* Clipboard contains N-1 newlines lines for N selected rows 
This commit is contained in:
Leonard Hecker 2023-05-26 21:32:15 +02:00 committed by GitHub
parent 8611d901b6
commit cd6b0832e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -251,7 +251,8 @@ void Clipboard::StoreSelectionToClipboard(const bool copyFormatting)
const auto text = buffer.GetText(includeCRLF,
trimTrailingWhitespace,
selectionRects,
GetAttributeColors);
GetAttributeColors,
selection.IsKeyboardMarkSelection());
CopyTextToSystemClipboard(text, copyFormatting);
}