diff --git a/src/cascadia/TerminalApp/CommandPalette.cpp b/src/cascadia/TerminalApp/CommandPalette.cpp index 15c1492e380..3a5a5ad6195 100644 --- a/src/cascadia/TerminalApp/CommandPalette.cpp +++ b/src/cascadia/TerminalApp/CommandPalette.cpp @@ -132,7 +132,7 @@ namespace winrt::TerminalApp::implementation if (_currentMode == CommandPaletteMode::TabSwitchMode) { const auto& selectedCommand = _filteredActionsView().SelectedItem(); - if (const auto& command = selectedCommand.try_as()) + if (const auto& command = selectedCommand.try_as()) { const auto& actionAndArgs = command.Action(); _dispatch.DoAction(actionAndArgs);