[PR #13964] [MERGED] Fix duplication issue for unfocused tabs #29858

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13964
Author: @JerBast
Created: 9/11/2022
Status: Merged
Merged: 10/12/2022
Merged by: @DHowett

Base: mainHead: 13942


📝 Commits (2)

  • 49ed479 Fix duplication issue for unfocused tabs
  • 12d1c47 Resolve merge conflict

📊 Changes

5 files changed (+25 additions, -28 deletions)

View changed files

📝 src/cascadia/LocalTests_TerminalApp/TabTests.cpp (+5 -5)
📝 src/cascadia/TerminalApp/AppActionHandlers.cpp (+2 -1)
📝 src/cascadia/TerminalApp/TabManagement.cpp (+3 -3)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+14 -18)
📝 src/cascadia/TerminalApp/TerminalPage.h (+1 -1)

📄 Description

Instead of using the currently focused tab when an unfocused tab is duplicated, the _MakePane(...) function now uses an optional source tab argument that points to the correct tab being duplicated.

Validation Steps Performed

Manually tested on multiple tabs with different profiles. Performed steps:

  • Construct at least two tabs with different profiles.
  • Select Duplicate Tab option from the dropdown menu of the unfocused tab.
  • Verify that the new tab has the same profile as the tab it was duplicated from.

Closes https://github.com/microsoft/terminal/issues/13942


🔄 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/13964 **Author:** [@JerBast](https://github.com/JerBast) **Created:** 9/11/2022 **Status:** ✅ Merged **Merged:** 10/12/2022 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `13942` --- ### 📝 Commits (2) - [`49ed479`](https://github.com/microsoft/terminal/commit/49ed479c39b113cb248df32f7b372898566c1a7d) Fix duplication issue for unfocused tabs - [`12d1c47`](https://github.com/microsoft/terminal/commit/12d1c4790e3cceb798ba4bf591847128878f2525) Resolve merge conflict ### 📊 Changes **5 files changed** (+25 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_TerminalApp/TabTests.cpp` (+5 -5) 📝 `src/cascadia/TerminalApp/AppActionHandlers.cpp` (+2 -1) 📝 `src/cascadia/TerminalApp/TabManagement.cpp` (+3 -3) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+14 -18) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+1 -1) </details> ### 📄 Description Instead of using the currently focused tab when an unfocused tab is duplicated, the `_MakePane(...)` function now uses an optional source tab argument that points to the correct tab being duplicated. ## Validation Steps Performed Manually tested on multiple tabs with different profiles. Performed steps: * Construct at least two tabs with different profiles. * Select `Duplicate Tab` option from the dropdown menu of the unfocused tab. * Verify that the new tab has the same profile as the tab it was duplicated from. Closes https://github.com/microsoft/terminal/issues/13942 --- <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:37:17 +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#29858