[PR #15232] [MERGED] A very sensible Pane refactoring #30522

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15232
Author: @zadjii-msft
Created: 4/25/2023
Status: Merged
Merged: 4/25/2023
Merged by: @microsoft-github-policy-service[bot]

Base: mainHead: dev/migrie/eim/sensible-pane-chuckle


📝 Commits (2)

  • a616065 this is a very sensible Pane refactoring
  • b094adb revokers are nice like this

📊 Changes

2 files changed (+26 additions, -24 deletions)

View changed files

📝 src/cascadia/TerminalApp/Pane.cpp (+17 -21)
📝 src/cascadia/TerminalApp/Pane.h (+9 -3)

📄 Description

It seemed dangerous to just have places all over Pane where we manipulate the whole cadre of TermControl events. Seemed ripe for a copypasta error. This moves that around, so there's only two methods for messing with the TermControl callbacks: _setupControlEvents and _removeControlEvents.

Closes: nothing. This was an off-the-cuff commit that seemed valuable.


🔄 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/15232 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 4/25/2023 **Status:** ✅ Merged **Merged:** 4/25/2023 **Merged by:** [@microsoft-github-policy-service[bot]](https://github.com/apps/microsoft-github-policy-service) **Base:** `main` ← **Head:** `dev/migrie/eim/sensible-pane-chuckle` --- ### 📝 Commits (2) - [`a616065`](https://github.com/microsoft/terminal/commit/a616065e9863f4cd08beb2c9d6c03909ff44232b) this is a very sensible Pane refactoring - [`b094adb`](https://github.com/microsoft/terminal/commit/b094adbfcbc0889c2ab39d5fc61683300a6ea6fc) revokers are nice like this ### 📊 Changes **2 files changed** (+26 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Pane.cpp` (+17 -21) 📝 `src/cascadia/TerminalApp/Pane.h` (+9 -3) </details> ### 📄 Description It seemed dangerous to just have places all over Pane where we manipulate the whole cadre of TermControl events. Seemed ripe for a copypasta error. This moves that around, so there's only two methods for messing with the TermControl callbacks: `_setupControlEvents` and `_removeControlEvents`. Closes: nothing. This was an off-the-cuff commit that seemed valuable. --- <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:41:20 +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#30522