microsoft / microsoft/terminal

"Remove trailing white-space from rectangular selection" option does not work

Open
#12,237 10 comments 0 reactions 0 assignees View on GitHub
Area-Settings Area-TerminalControl Help Wanted Issue-Bug Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.11.3471.0

### Windows build number

10.0.19043.0

### Other Software

_No response_

### Steps to reproduce

Ensure that the "Remove trailing white-space from rectangular selection" option is un-checked. Select some text from the terminal window that includes trailing white space, then paste the contents into another application eg notepad. The content pasted in will have its trailing white space trimmed off, contrary to the option setting.

### Expected Behavior

When the option is off, trailing white space should not be truncated.

### Actual Behavior

Traiing white-space truncation occuring despite the option setting being off.

Just to check that the bug is not simply a negation logic error, I turned it on and repeated the opration, but I found that the content was still be trailing white-space truncated, so it looks like the option is simply ignored.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Windows Terminal using the reported version and the rectangular-selection option, then trace the option's handling during selection and paste. Done means trailing whitespace is preserved when the option is unchecked and trimmed when it is checked.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.