From 458872a01a2d8d37a43ee5c525bbcf061cb23d54 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Thu, 21 May 2026 19:28:02 -0500 Subject: [PATCH] Preview the selected tab in `tabSearch` too (#20256) Currently when you use the cmdpal in tabswitcher mode, we "preview" switching to that tab. We don't do that for `tabSearch` mode though. Fixing that was half a line of code. Now we do. Closes #20233 --- src/cascadia/TerminalApp/CommandPalette.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascadia/TerminalApp/CommandPalette.cpp b/src/cascadia/TerminalApp/CommandPalette.cpp index 61607319f1..2050bebb2e 100644 --- a/src/cascadia/TerminalApp/CommandPalette.cpp +++ b/src/cascadia/TerminalApp/CommandPalette.cpp @@ -224,7 +224,7 @@ namespace winrt::TerminalApp::implementation { const auto selectedCommand = _filteredActionsView().SelectedItem(); const auto filteredCommand{ selectedCommand.try_as() }; - if (_currentMode == CommandPaletteMode::TabSwitchMode) + if (_currentMode == CommandPaletteMode::TabSwitchMode || _currentMode == CommandPaletteMode::TabSearchMode) { _switchToTab(filteredCommand); }