mirror of
https://github.com/microsoft/terminal.git
synced 2026-07-08 18:16:28 +00:00
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
This commit is contained in:
@@ -224,7 +224,7 @@ namespace winrt::TerminalApp::implementation
|
||||
{
|
||||
const auto selectedCommand = _filteredActionsView().SelectedItem();
|
||||
const auto filteredCommand{ selectedCommand.try_as<winrt::TerminalApp::FilteredCommand>() };
|
||||
if (_currentMode == CommandPaletteMode::TabSwitchMode)
|
||||
if (_currentMode == CommandPaletteMode::TabSwitchMode || _currentMode == CommandPaletteMode::TabSearchMode)
|
||||
{
|
||||
_switchToTab(filteredCommand);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user