[PR #14636] [MERGED] Make sure to update the selection pivot while circling #30175

Open
opened 2026-01-31 09:39:07 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14636
Author: @zadjii-msft
Created: 1/5/2023
Status: Merged
Merged: 1/16/2023
Merged by: @undefined

Base: mainHead: dev/migrie/b/14462-real


📝 Commits (2)

📊 Changes

2 files changed (+93 additions, -2 deletions)

View changed files

📝 src/cascadia/TerminalCore/Terminal.cpp (+11 -0)
📝 src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp (+82 -2)

📄 Description

This builds upon #10749. When we added a separate pivot to track the "active" anchor, we forgot to update the pivot while circling. What does that mean? Moving the mouse would trigger us to update the selection using new endpoint and the old pivot, which hadn't been updated.

There's probably a more elegant way of doing this, but it's good enough.

Updated the test to cover this as well.

Closes #14462


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14636 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 1/5/2023 **Status:** ✅ Merged **Merged:** 1/16/2023 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/14462-real` --- ### 📝 Commits (2) - [`21740b9`](https://github.com/microsoft/terminal/commit/21740b999777350a7e7eed4f02fbfcb3509f7e40) a fix, and updated test for #14462 - [`a5a4b88`](https://github.com/microsoft/terminal/commit/a5a4b88bbcfe79b33ee55f8bf0b2a72cc0e20b75) spellcheck ### 📊 Changes **2 files changed** (+93 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+11 -0) 📝 `src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp` (+82 -2) </details> ### 📄 Description This builds upon #10749. When we added a separate pivot to track the "active" anchor, we forgot to update the pivot while circling. What does that mean? Moving the mouse would trigger us to update the selection using new endpoint and the old _pivot_, which hadn't been updated. There's probably a more elegant way of doing this, but it's good enough. Updated the test to cover this as well. Closes #14462 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:39:07 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30175