Copied text from git diff inside powershell core doesn't have carriage return characters #3183

Closed
opened 2026-01-30 23:14:57 +00:00 by claunia · 4 comments
Owner

Originally created by @medoni on GitHub (Aug 6, 2019).

Environment

Windows build number: 10.0.18362.10005
Windows Terminal version (if applicable): 0.2.1831.0
Powserhell core version: 6.2.2
git version: 2.22.0.windows.1

Steps to reproduce

  • Setup a profile to open a powershell core tab directly. Starting pwsh.exe from cmd.exe or powershell.exe doesn't have the issue!
  • call git diff inside of a git directory with unstaged changes
  • select git output with mouse
  • right click to copy
  • open notepad.exe
  • right click -> paste

Expected behavior

pasted text with new line characters like git output

Actual behavior

no newline characters

Originally created by @medoni on GitHub (Aug 6, 2019). # Environment ``` Windows build number: 10.0.18362.10005 Windows Terminal version (if applicable): 0.2.1831.0 Powserhell core version: 6.2.2 git version: 2.22.0.windows.1 ``` # Steps to reproduce - Setup a profile to open a powershell core tab directly. Starting pwsh.exe from cmd.exe or powershell.exe doesn't have the issue! - call `git diff` inside of a git directory with unstaged changes - select git output with mouse - right click to copy - open `notepad.exe` - right click -> paste # Expected behavior pasted text with new line characters like git output # Actual behavior no newline characters <!-- What's actually happening? -->
claunia added the Needs-TriageResolution-Duplicate labels 2026-01-30 23:14:57 +00:00
Author
Owner

@ebmarquez commented on GitHub (Aug 6, 2019):

I'm having the same problem when coping syntax out of a ssh session. EOL char seem to be missing.

@ebmarquez commented on GitHub (Aug 6, 2019): I'm having the same problem when coping syntax out of a ssh session. EOL char seem to be missing.
Author
Owner

@medoni commented on GitHub (Aug 7, 2019):

Affects also 0.3.2171.0

@medoni commented on GitHub (Aug 7, 2019): Affects also 0.3.2171.0
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 8, 2019):

This is @2275.

@DHowett-MSFT commented on GitHub (Aug 8, 2019): This is @2275.
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 8, 2019):

Sorry, #2275.

@DHowett-MSFT commented on GitHub (Aug 8, 2019): Sorry, #2275.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3183