This commit is contained in:
Kovid Goyal 2017-11-15 15:03:55 +05:30
parent c3f5b20ca7
commit 95aad91a49
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -355,6 +355,12 @@ class TabManager: # {{{
def active_tab(self): def active_tab(self):
return self.tabs[self.active_tab_idx] if self.tabs else None return self.tabs[self.active_tab_idx] if self.tabs else None
@property
def active_window(self):
t = self.active_tab
if t is not None:
return t.active_window
def move_tab(self, delta=1): def move_tab(self, delta=1):
if len(self.tabs) > 1: if len(self.tabs) > 1:
idx = self.active_tab_idx idx = self.active_tab_idx