mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-22 05:02:31 +00:00
Indicate if set_active_tab() worked or not
This commit is contained in:
parent
40b9049deb
commit
eb006a6688
2 changed files with 4 additions and 2 deletions
|
|
@ -846,7 +846,8 @@ class Boss:
|
|||
def set_active_tab(self, tab):
|
||||
tm = self.active_tab_manager
|
||||
if tm is not None:
|
||||
tm.set_active_tab(tab)
|
||||
return tm.set_active_tab(tab)
|
||||
return False
|
||||
|
||||
def next_tab(self):
|
||||
tm = self.active_tab_manager
|
||||
|
|
|
|||
|
|
@ -478,8 +478,9 @@ class TabManager: # {{{
|
|||
try:
|
||||
idx = self.tabs.index(tab)
|
||||
except Exception:
|
||||
return
|
||||
return False
|
||||
self.set_active_tab_idx(idx)
|
||||
return True
|
||||
|
||||
def next_tab(self, delta=1):
|
||||
if len(self.tabs) > 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue