microsoft / microsoft/terminal

Resizing terminal clears selection

Open
#10,897 4 comments 0 reactions 0 assignees View on GitHub
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 (or Windows build number)

Dev - latest

### Other Software

_No response_

### Steps to reproduce

1. Select text.
2. Resize the terminal vertically
3. Select text
4. Resize terminal horizontally

### Expected Behavior

- After 2: the selection should be preserved (both block and non-block selection)
- After 4: probably, non-block selection should remain adjusted to the new position of the selected text

### Actual Behavior

Selection is cleared both after 2 and 4 (inside _doResizeUnderLock)

Contributor guide

Open the contributing guide

Research direction

Start at _doResizeUnderLock, which the issue identifies as clearing the selection, and reproduce the vertical and horizontal resize steps in Windows Terminal. The work is done when block selections remain preserved and non-block selections remain adjusted to the selected text after resizing.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.