[PR #10096] [MERGED] Fix tabColor arg crash in CommandPalette #27885

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10096
Author: @leonMSFT
Created: 5/14/2021
Status: Merged
Merged: 5/17/2021
Merged by: @DHowett

Base: mainHead: dev/lelian/tabcolorargfix


📝 Commits (1)

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppCommandlineArgs.cpp (+12 -2)

📄 Description

While a user is formulating their hex string for a tabColor arg
in the CommandPalette, we try to parse the string one char at
a time as it comes in. ColorFromHexString doesn't like anything
except a well formed hex string so it'll throw. We can probably eat
any error that comes out of this because we should only care to set
the TabColor once the string provided is a valid hex str.

Closes #10053


🔄 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/10096 **Author:** [@leonMSFT](https://github.com/leonMSFT) **Created:** 5/14/2021 **Status:** ✅ Merged **Merged:** 5/17/2021 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/lelian/tabcolorargfix` --- ### 📝 Commits (1) - [`f6766d9`](https://github.com/microsoft/terminal/commit/f6766d975da3137c34affd4e3bbfd08dbd2cc9f1) eat well ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppCommandlineArgs.cpp` (+12 -2) </details> ### 📄 Description While a user is formulating their hex string for a `tabColor` arg in the CommandPalette, we try to parse the string one char at a time as it comes in. `ColorFromHexString` doesn't like anything except a well formed hex string so it'll throw. We can probably eat any error that comes out of this because we should only care to set the TabColor once the string provided is a valid hex str. Closes #10053 --- <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:24:53 +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#27885