[PR #7263] Default initialize a CmdPal mode #26880

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

Original Pull Request: https://github.com/microsoft/terminal/pull/7263

State: closed
Merged: Yes


Whoops, members are zero initialized in Debug builds but most likely not
in Release builds So, this PR adds a couple of default values to
_currentMode and its associated XAML strings to make cmdpal/ats work
deterministically on first use. I also added a default value to
_anchorKey just to be safe.

Closes #7254

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7263 **State:** closed **Merged:** Yes --- Whoops, members are zero initialized in Debug builds but most likely not in Release builds So, this PR adds a couple of default values to `_currentMode` and its associated XAML strings to make cmdpal/ats work deterministically on first use. I also added a default value to `_anchorKey` just to be safe. Closes #7254
claunia added the pull-request label 2026-01-31 09:18:40 +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#26880