[PR #647] [MERGED] Bugfix: ESC didn't clear selection (except CMD) #24235

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/647
Author: @carlos-zamora
Created: 5/10/2019
Status: Merged
Merged: 5/10/2019
Merged by: @carlos-zamora

Base: masterHead: dev/cazamor/bugfix-clear-selection


📝 Commits (2)

  • 9f64c6e Bugfix: ESC didn't clear selection (except CMD)
  • 41ceafc Bugfix: ESC didn't clear selection - moved TriggerSelection() to ClearSelection()

📊 Changes

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

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+0 -1)
📝 src/cascadia/TerminalCore/Terminal.cpp (+2 -0)

📄 Description

Text selection is now removed when ESC is passed as input. Still unclear as to why selection did get cleared in CMD but not in any of the other options. The line _terminal->ClearSelection() was still called but, for whatever reason, the renderer didn't update. @miniksa Any thoughts on that? Just curious.


🔄 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/647 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 5/10/2019 **Status:** ✅ Merged **Merged:** 5/10/2019 **Merged by:** [@carlos-zamora](https://github.com/carlos-zamora) **Base:** `master` ← **Head:** `dev/cazamor/bugfix-clear-selection` --- ### 📝 Commits (2) - [`9f64c6e`](https://github.com/microsoft/terminal/commit/9f64c6e9a1d4445acd1c717561592e17c5f86ce7) Bugfix: ESC didn't clear selection (except CMD) - [`41ceafc`](https://github.com/microsoft/terminal/commit/41ceafca4ddfdc914e8296be9e580a409712022f) Bugfix: ESC didn't clear selection - moved TriggerSelection() to ClearSelection() ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+0 -1) 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+2 -0) </details> ### 📄 Description Text selection is now removed when ESC is passed as input. Still unclear as to why selection did get cleared in CMD but not in any of the other options. The line `_terminal->ClearSelection()` was still called but, for whatever reason, the renderer didn't update. @miniksa Any thoughts on that? Just curious. --- <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:02:08 +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#24235