mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-11 13:56:33 -06:00
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:
parent
8611d901b6
commit
cd6b0832e2
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user