close one tab by press ctrl-w and hide the bar (#628)

close one tab by press ctrl-w and hide the bar

fix #614
This commit is contained in:
何智权 2019-05-10 01:32:57 +08:00 committed by Mike Griese
parent 32f4f7133c
commit 5dc7d0e843

View file

@ -671,6 +671,7 @@ namespace winrt::TerminalApp::implementation
_tabView.SelectedIndex((focusedTabIndex > 0) ? focusedTabIndex - 1 : 1);
_tabView.Items().RemoveAt(focusedTabIndex);
_tabs.erase(_tabs.begin() + focusedTabIndex);
_UpdateTabView();
}
}