Skip to content

Conversation

@MengAiDev
Copy link
Contributor

@MengAiDev MengAiDev commented Jul 28, 2025

References and Relevant Issues

#19181

Detailed Description of the Pull Request / Additional comments

  • Modify the cursor repositioning logic to check if a selection is in progress
  • Only reposition the cursor when the mouse is used for positioning, not during selection operations

- Modify the cursor repositioning logic to check if a selection is in progress
- Only reposition the cursor when the mouse is used for positioning, not during selection operations
{
_repositionCursorWithMouse(terminalPosition);
// Don't reposition cursor if this is part of a selection operation
if (!selectionNeedsToBeCopied)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can merge this with the else-if above.

To me this change makes sense. What about you @zadjii-msft?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed a commit to make code more clear.

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix!

@DHowett
Copy link
Member

DHowett commented Aug 4, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DHowett DHowett enabled auto-merge (squash) August 4, 2025 20:31
@DHowett
Copy link
Member

DHowett commented Aug 4, 2025

It is not traditional to check whether a selection is in progress using selectionNeedsToBeCopied, but ... (1) I can't think through how this code fits together right now and (2) "reposition cursor..." is an experimental feature, so if we get it wrong it's OK

@DHowett DHowett merged commit 88ab154 into microsoft:main Aug 4, 2025
13 of 15 checks passed
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.23 Servicing Pipeline Aug 6, 2025
DHowett pushed a commit that referenced this pull request Aug 6, 2025
- Modify the cursor repositioning logic to check if a selection is in
progress
- Only reposition the cursor when the mouse is used for positioning, not
during selection operations

Closes #19181

(cherry picked from commit 88ab154)
Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgdSbu4
Service-Version: 1.23
@DHowett DHowett moved this from Cherry Picked to Shipped in 1.23 Servicing Pipeline Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants