Skip to content

Rectangular select copies trailing spaces #9706

@randomascii

Description

@randomascii

Windows Terminal version (or Windows build number)

1.6.10571.0

Other Software

No response

Steps to reproduce

When doing a rectangular copy of text Windows Terminal copies trailing spaces. If the different lines being copied are of different lengths then this means the clipboard contents end up with varying numbers of spaces. Cleaning this up is a nuisance. Trailing spaces are rarely desirable when pasting text. For instance, if the terminal contained this text:

1: blah blah blah Column 3
2: foo Column 3

then I might want to copy the first two columns of data ("1: blah blah blah" and the subsequent data below or perhaps just the second column of data ("blah blah blah" and the subsequent data below) but I (personally), never want to copy the trailing spaces. I think that this is a change of behavior. I think it is a regression. It is certainly a change from cmd.exe, and not a welcome one.

Expected Behavior

No trailing spaces copied to the clipboard.

Actual Behavior

Trailing spaces copied to the clipboard.

Metadata

Metadata

Assignees

Labels

Area-SettingsIssues related to settings and customizability, for console or terminalArea-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions