Skip to content

Commit

Permalink
Handle switch to tab binding even if tab doesn't exist (#9781)
Browse files Browse the repository at this point in the history
Closes #9635

(cherry picked from commit a9a58f7)
  • Loading branch information
Don-Vito authored and DHowett committed Apr 12, 2021
1 parent 842b162 commit e40b5e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cascadia/TerminalApp/AppActionHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ namespace winrt::TerminalApp::implementation
{
if (const auto& realArgs = args.ActionArgs().try_as<SwitchToTabArgs>())
{
const auto handled = _SelectTab({ realArgs.TabIndex() });
args.Handled(handled);
_SelectTab({ realArgs.TabIndex() });
args.Handled(true);
}
}

Expand Down

0 comments on commit e40b5e8

Please sign in to comment.