Steps to reproduce:
- Open several tabs in a sublime window
- Focus on the first tab
- Open a new tab
- Detach the new tab to a new window
- Go back to previous window from where the tab was detached
Expected behavior: the older window should be focused on the last tab that was open.
Actual behavior: the older window is focused on the last tab in the tab bar, regardless of which tab was selected before.