When attaching window make its parent tab active

This commit is contained in:
Kovid Goyal
2019-11-09 11:09:29 +05:30
parent 645963cc24
commit 14d693a8ff
2 changed files with 6 additions and 0 deletions

View File

@@ -417,6 +417,11 @@ class Tab: # {{{
def __repr__(self):
return 'Tab(title={}, id={})'.format(self.name or self.title, hex(id(self)))
def make_active(self):
tm = self.tab_manager_ref()
if tm is not None:
tm.set_active_tab(self)
# }}}